#include <OgreSubMesh.h>
Public Types | |
typedef std::multimap< unsigned short, VertexBoneAssignment > | VertexBoneAssignmentList |
Multimap of verex bone assignments (orders by vertex index). More... | |
typedef MapIterator< VertexBoneAssignmentList > | BoneAssignmentIterator |
Public Methods | |
SubMesh () | |
~SubMesh () | |
void | setMaterialName (const String &matName) |
Sets the name of the Material which this SubMesh will use. More... | |
const String & | getMaterialName (void) const |
bool | isMatInitialised (void) const |
Returns true if a material has been assigned to the submesh, otherwise returns false. More... | |
void | _getRenderOperation (RenderOperation &rend, ushort lodIndex=0) |
Returns a RenderOperation structure required to render this mesh. More... | |
void | addBoneAssignment (const VertexBoneAssignment &vertBoneAssign) |
Assigns a vertex to a bone with a given weight, for skeletal animation. More... | |
void | clearBoneAssignments (void) |
Removes all bone assignments for this mesh. More... | |
BoneAssignmentIterator | getBoneAssignmentIterator (void) |
Gets an iterator for access all bone assignments. More... | |
Public Attributes | |
bool | useSharedVertices |
Indicates if this submesh shares vertex data with other meshes or whether it has it's own vertices. More... | |
bool | useTriStrips |
Boolean indicating if the face indexes included are for a continuous triangle strip. More... | |
GeometryData | geometry |
Dedicated geometry data (only valid if useSharedVertices = false). More... | |
unsigned short | numFaces |
Number of faces contained in this submesh. More... | |
unsigned short * | faceVertexIndices |
List of indices into geometry to describe faces. More... | |
ProgressiveMesh::LODFaceList | mLodFaceList |
Mesh * | parent |
Reference to parent Mesh. More... | |
Protected Methods | |
void | compileBoneAssignments (void) |
Must be called once to compile bone assignments into geometry buffer. More... | |
Protected Attributes | |
String | mMaterialName |
Name of the material this SubMesh uses. More... | |
bool | mMatInitialised |
Is there a material yet? More... | |
VertexBoneAssignmentList | mBoneAssignments |
bool | mBoneAssignmentsOutOfDate |
Flag indicating that bone assignments need to be recompiled. More... | |
Friends | |
class | Mesh |
class | MeshSerializer |
Like the Mesh class, instatiations of 3D objects in the scene share the SubMesh instances, and have the option of overriding their material differences on a per-object basis if required. See the SubEntity class for more information.
|
|
|
Multimap of verex bone assignments (orders by vertex index).
|
|
|
|
|
|
Returns a RenderOperation structure required to render this mesh.
|
|
Assigns a vertex to a bone with a given weight, for skeletal animation.
|
|
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. |
|
Must be called once to compile bone assignments into geometry buffer.
|
|
Gets an iterator for access all bone assignments.
|
|
|
|
Returns true if a material has been assigned to the submesh, otherwise returns false.
|
|
Sets the name of the Material which this SubMesh will use.
|
|
|
|
|
|
List of indices into geometry to describe faces.
|
|
Dedicated geometry data (only valid if useSharedVertices = false).
|
|
|
|
Flag indicating that bone assignments need to be recompiled.
|
|
|
|
Name of the material this SubMesh uses.
|
|
Is there a material yet?
|
|
Number of faces contained in this submesh.
|
|
Reference to parent Mesh.
|
|
Indicates if this submesh shares vertex data with other meshes or whether it has it's own vertices.
|
|
Boolean indicating if the face indexes included are for a continuous triangle strip.
|
Copyright © 2002 by The OGRE Team