OmegaEngine API  1.0.3
Static Public Member Functions | List of all members
OmegaEngine.Graphics.BufferHelper Class Reference

Helper methods for creating, reading from and writing to VertexBuffers and IndexBuffers. More...

Static Public Member Functions

static BoundingBox ComputeBoundingBox (VertexBuffer vb, int vertexCount)
 Generates a BoundingBox that completely contains all points within a VertexBuffer. More...
 
static BoundingBox ComputeBoundingBox (Mesh mesh)
 Generates a BoundingBox that completely contains all points within a Mesh. More...
 
static BoundingSphere ComputeBoundingSphere (VertexBuffer vb, int vertexCount)
 Generates a BoundingSphere that completely contains all points within a VertexBuffer. More...
 
static BoundingSphere ComputeBoundingSphere (Mesh mesh)
 Generates a BoundingSphere that completely contains all points within a Mesh. More...
 

Detailed Description

Helper methods for creating, reading from and writing to VertexBuffers and IndexBuffers.

Member Function Documentation

◆ ComputeBoundingBox() [1/2]

static BoundingBox OmegaEngine.Graphics.BufferHelper.ComputeBoundingBox ( VertexBuffer  vb,
int  vertexCount 
)
inlinestatic

Generates a BoundingBox that completely contains all points within a VertexBuffer.

Parameters
vbThe VertexBuffer to be contained within the BoundingBox.
vertexCountThe total number of vertex contained within vb .

◆ ComputeBoundingBox() [2/2]

static BoundingBox OmegaEngine.Graphics.BufferHelper.ComputeBoundingBox ( Mesh  mesh)
inlinestatic

Generates a BoundingBox that completely contains all points within a Mesh.

Parameters
meshThe Mesh to be contained within the BoundingBox.

◆ ComputeBoundingSphere() [1/2]

static BoundingSphere OmegaEngine.Graphics.BufferHelper.ComputeBoundingSphere ( VertexBuffer  vb,
int  vertexCount 
)
inlinestatic

Generates a BoundingSphere that completely contains all points within a VertexBuffer.

Parameters
vbThe VertexBuffer to be contained within the BoundingSphere.
vertexCountThe total number of vertex contained within vb .

◆ ComputeBoundingSphere() [2/2]

static BoundingSphere OmegaEngine.Graphics.BufferHelper.ComputeBoundingSphere ( Mesh  mesh)
inlinestatic

Generates a BoundingSphere that completely contains all points within a Mesh.

Parameters
meshThe Mesh to be contained within the BoundingSphere.

The documentation for this class was generated from the following file: