#include <OgreSubMesh.h>
Public Types | |
| typedef std::vector< unsigned short > | IndexMap |
| Dedicated index map for translate blend index to bone index (only valid if useSharedVertices = false). | |
| typedef std::multimap< size_t, VertexBoneAssignment > | VertexBoneAssignmentList |
| Multimap of verex bone assignments (orders by vertex index). | |
| typedef MapIterator< VertexBoneAssignmentList > | BoneAssignmentIterator |
| typedef ConstMapIterator< AliasTextureNamePairList > | AliasTextureIterator |
Public Member Functions | |
| SubMesh () | |
| ~SubMesh () | |
| void | setMaterialName (const String &matName) |
| Sets the name of the Material which this SubMesh will use. | |
| const String & | getMaterialName (void) const |
| bool | isMatInitialised (void) const |
| Returns true if a material has been assigned to the submesh, otherwise returns false. | |
| void | _getRenderOperation (RenderOperation &rend, ushort lodIndex=0) |
| Returns a RenderOperation structure required to render this mesh. | |
| void | addBoneAssignment (const VertexBoneAssignment &vertBoneAssign) |
| Assigns a vertex to a bone with a given weight, for skeletal animation. | |
| void | clearBoneAssignments (void) |
| Removes all bone assignments for this mesh. | |
| BoneAssignmentIterator | getBoneAssignmentIterator (void) |
| Gets an iterator for access all bone assignments. | |
| void | _compileBoneAssignments (void) |
| Must be called once to compile bone assignments into geometry buffer. | |
| AliasTextureIterator | getAliasTextureIterator (void) const |
| Gets an constant iterator to access all texture alias names assigned to this submesh. | |
| void | addTextureAlias (const String &aliasName, const String &textureName) |
| Adds the alias or replaces an existing one and associates the texture name to it. | |
| void | removeTextureAlias (const String &aliasName) |
| Remove a specific texture alias name from the sub mesh. | |
| void | removeAllTextureAliases (void) |
| removes all texture aliases from the sub mesh | |
| bool | hasTextureAliases (void) const |
| returns true if the sub mesh has texture aliases | |
| size_t | getTextureAliasCount (void) const |
| Gets the number of texture aliases assigned to the sub mesh. | |
| bool | updateMaterialUsingTextureAliases (void) |
| The current material used by the submesh is copied into a new material and the submesh's texture aliases are applied if the current texture alias names match those found in the original material. | |
| VertexAnimationType | getVertexAnimationType (void) const |
| Get the type of any vertex animation used by dedicated geometry. | |
| void | generateExtremes (size_t count) |
| Generate the submesh extremes (. | |
Public Attributes | |
| bool | useSharedVertices |
| Indicates if this submesh shares vertex data with other meshes or whether it has it's own vertices. | |
| RenderOperation::OperationType | operationType |
| The render operation type used to render this submesh. | |
| VertexData * | vertexData |
| Dedicated vertex data (only valid if useSharedVertices = false). | |
| IndexData * | indexData |
| Face index data. | |
| IndexMap | blendIndexToBoneIndexMap |
| ProgressiveMesh::LODFaceList | mLodFaceList |
| std::vector< Vector3 > | extremityPoints |
| A list of extreme points on the submesh (optional). | |
| Mesh * | parent |
| Reference to parent Mesh (not a smart pointer so child does not keep parent alive). | |
Protected Member Functions | |
| void | removeLodLevels (void) |
| Internal method for removing LOD data. | |
Protected Attributes | |
| String | mMaterialName |
| Name of the material this SubMesh uses. | |
| bool | mMatInitialised |
| Is there a material yet? | |
| AliasTextureNamePairList | mTextureAliases |
| paired list of texture aliases and texture names | |
| VertexBoneAssignmentList | mBoneAssignments |
| bool | mBoneAssignmentsOutOfDate |
| Flag indicating that bone assignments need to be recompiled. | |
| VertexAnimationType | mVertexAnimationType |
| Type of vertex animation for dedicated vertex data (populated by Mesh). | |
Friends | |
| class | Mesh |
| class | MeshSerializerImpl |
| class | MeshSerializerImpl_v1_2 |
| class | MeshSerializerImpl_v1_1 |
Definition at line 56 of file OgreSubMesh.h.
|
|
Definition at line 183 of file OgreSubMesh.h. |
|
|
Definition at line 172 of file OgreSubMesh.h. |
|
|
Dedicated index map for translate blend index to bone index (only valid if useSharedVertices = false).
Definition at line 104 of file OgreSubMesh.h. |
|
|
Multimap of verex bone assignments (orders by vertex index).
Definition at line 171 of file OgreSubMesh.h. |
|
|
|
|
|
|
|
|
Must be called once to compile bone assignments into geometry buffer.
|
|
||||||||||||
|
Returns a RenderOperation structure required to render this mesh.
|
|
|
Assigns a vertex to a bone with a given weight, for skeletal animation.
|
|
||||||||||||
|
Adds the alias or replaces an existing one and associates the texture name to it.
|
|
|
Removes all bone assignments for this mesh.
|
|
|
Generate the submesh extremes (.
|
|
|
Gets an constant iterator to access all texture alias names assigned to this submesh.
|
|
|
Gets an iterator for access all bone assignments.
|
|
|
|
|
|
Gets the number of texture aliases assigned to the sub mesh.
Definition at line 213 of file OgreSubMesh.h. |
|
|
Get the type of any vertex animation used by dedicated geometry.
|
|
|
returns true if the sub mesh has texture aliases
Definition at line 210 of file OgreSubMesh.h. |
|
|
Returns true if a material has been assigned to the submesh, otherwise returns false.
|
|
|
removes all texture aliases from the sub mesh
|
|
|
Internal method for removing LOD data.
|
|
|
Remove a specific texture alias name from the sub mesh.
|
|
|
Sets the name of the Material which this SubMesh will use.
|
|
|
The current material used by the submesh is copied into a new material and the submesh's texture aliases are applied if the current texture alias names match those found in the original material.
|
|
|
Definition at line 58 of file OgreSubMesh.h. |
|
|
Definition at line 59 of file OgreSubMesh.h. |
|
|
Definition at line 61 of file OgreSubMesh.h. |
|
|
Definition at line 60 of file OgreSubMesh.h. |
|
|
Definition at line 105 of file OgreSubMesh.h. |
|
|
A list of extreme points on the submesh (optional).
Definition at line 128 of file OgreSubMesh.h. |
|
|
Face index data.
Definition at line 83 of file OgreSubMesh.h. |
|
|
Definition at line 248 of file OgreSubMesh.h. |
|
|
Flag indicating that bone assignments need to be recompiled.
Definition at line 251 of file OgreSubMesh.h. |
|
|
Definition at line 107 of file OgreSubMesh.h. |
|
|
Name of the material this SubMesh uses.
Definition at line 240 of file OgreSubMesh.h. |
|
|
Is there a material yet?
Definition at line 243 of file OgreSubMesh.h. |
|
|
paired list of texture aliases and texture names
Definition at line 246 of file OgreSubMesh.h. |
|
|
Type of vertex animation for dedicated vertex data (populated by Mesh).
Definition at line 254 of file OgreSubMesh.h. |
|
|
The render operation type used to render this submesh.
Definition at line 71 of file OgreSubMesh.h. |
|
|
Reference to parent Mesh (not a smart pointer so child does not keep parent alive).
Definition at line 131 of file OgreSubMesh.h. |
|
|
Indicates if this submesh shares vertex data with other meshes or whether it has it's own vertices.
Definition at line 68 of file OgreSubMesh.h. |
|
|
Dedicated vertex data (only valid if useSharedVertices = false).
Definition at line 80 of file OgreSubMesh.h. |
Copyright © 2000-2005 by The OGRE Team

This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Sep 30 10:53:40 2007