This documents an old version of bs::framework. Click here to see the latest release.
MeshProperties Class Reference

Description

Properties of a Mesh.

Shared between sim and core thread versions of a Mesh.

Methods

 MeshProperties (UINT32 numVertices, UINT32 numIndices, DrawOperationType drawOp)
 
 MeshProperties (UINT32 numVertices, UINT32 numIndices, const Vector< SubMesh > &subMeshes)
 
const SubMeshgetSubMesh (UINT32 subMeshIdx=0) const
 Retrieves a sub-mesh containing data used for rendering a certain portion of this mesh. More...
 
UINT32 getNumSubMeshes () const
 Retrieves a total number of sub-meshes in this mesh. More...
 
UINT32 getNumVertices () const
 Returns maximum number of vertices the mesh may store. More...
 
UINT32 getNumIndices () const
 Returns maximum number of indices the mesh may store. More...
 
const BoundsgetBounds () const
 Returns bounds of the geometry contained in the vertex buffers for all sub-meshes. More...
 

Method documentation

◆ getBounds()

const Bounds& getBounds ( ) const

Returns bounds of the geometry contained in the vertex buffers for all sub-meshes.

◆ getNumIndices()

UINT32 getNumIndices ( ) const

Returns maximum number of indices the mesh may store.

◆ getNumSubMeshes()

UINT32 getNumSubMeshes ( ) const

Retrieves a total number of sub-meshes in this mesh.

◆ getNumVertices()

UINT32 getNumVertices ( ) const

Returns maximum number of vertices the mesh may store.

◆ getSubMesh()

const SubMesh& getSubMesh ( UINT32  subMeshIdx = 0) const

Retrieves a sub-mesh containing data used for rendering a certain portion of this mesh.

If no sub-meshes are specified manually a special sub-mesh containing all indices is returned.