DigitalSpaces::DIOGRESubMesh Struct Reference
[Ogre]

#include <OGREInterfaces.h>

Inherits DigitalSpaces::DIObjectBase.


Public Member Functions

bool GetUseSharedVertices (void)
 Indicates if this submesh shares vertex data with other meshes or whether it has it's own vertices.
DIOGREVertexDataGetVertexData (void)
 The render operation type used to render this submesh.
DIOGREIndexDataGetIndexData (void)
 Face index data.
DIOGREMeshGetParent (void)
 Reference to parent Mesh (not a smart pointer so child does not keep parent alive).
void SetMaterialName (const char *matName)
 Sets the name of the Material which this SubMesh will use.
const char * GetMaterialName (void)
bool IsMatInitialised (void)
 Returns true if a material has been assigned to the submesh, otherwise returns false.
void AddBoneAssignment (OGREVertexBoneAssignment *vertBoneAssign)
 Returns a RenderOperation structure required to render this mesh.
void ClearBoneAssignments (void)
 Removes all bone assignments for this mesh.
void _CompileBoneAssignments (void)
 Multimap of verex bone assignments (orders by vertex index).

Member Function Documentation

bool DigitalSpaces::DIOGRESubMesh::GetUseSharedVertices ( void   ) 

Indicates if this submesh shares vertex data with other meshes or whether it has it's own vertices.

DIOGREVertexData* DigitalSpaces::DIOGRESubMesh::GetVertexData ( void   ) 

The render operation type used to render this submesh.

Dedicated vertex data (only valid if useSharedVertices = false).

Remarks:
This data is completely owned by this submesh.
The use of shared or non-shared buffers is determined when model data is converted to the OGRE .mesh format.

DIOGREIndexData* DigitalSpaces::DIOGRESubMesh::GetIndexData ( void   ) 

Face index data.

DIOGREMesh* DigitalSpaces::DIOGRESubMesh::GetParent ( void   ) 

Reference to parent Mesh (not a smart pointer so child does not keep parent alive).

void DigitalSpaces::DIOGRESubMesh::SetMaterialName ( const char *  matName  ) 

Sets the name of the Material which this SubMesh will use.

const char* DigitalSpaces::DIOGRESubMesh::GetMaterialName ( void   ) 

bool DigitalSpaces::DIOGRESubMesh::IsMatInitialised ( void   ) 

Returns true if a material has been assigned to the submesh, otherwise returns false.

void DigitalSpaces::DIOGRESubMesh::AddBoneAssignment ( OGREVertexBoneAssignment vertBoneAssign  ) 

Returns a RenderOperation structure required to render this mesh.

Parameters:
rend Reference to a RenderOperation structure to populate.
lodIndex The index of the LOD to use. Assigns a vertex to a bone with a given weight, for skeletal animation.
Remarks:
This method is only valid after calling setSkeletonName. Since this is a one-off process there exists only 'addBoneAssignment' and 'clearBoneAssignments' methods, no 'editBoneAssignment'. You should not need to modify bone assignments during rendering (only the positions of bones) and OGRE reserves the right to do some internal data reformatting of this information, depending on render system requirements.
This method is for assigning weights to the dedicated geometry of the SubMesh. To assign weights to the shared Mesh geometry, see the equivalent methods on Mesh.

void DigitalSpaces::DIOGRESubMesh::ClearBoneAssignments ( void   ) 

Removes all bone assignments for this mesh.

This method is for assigning weights to the dedicated geometry of the SubMesh. To assign weights to the shared Mesh geometry, see the equivalent methods on Mesh.

void DigitalSpaces::DIOGRESubMesh::_CompileBoneAssignments ( void   ) 

Multimap of verex bone assignments (orders by vertex index).

Gets an iterator for access all bone assignments.

Remarks:
Only valid if this SubMesh has dedicated geometry. Must be called once to compile bone assignments into geometry buffer.


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

Generated on Sun Aug 31 17:46:31 2008 for Digital Spaces by  doxygen 1.5.6