bool updateMaterialUsingTextureAliases(void)
The current material used by the submesh is copied into a new material and the submesh's texture alia...
void removeTextureAlias(const String &aliasName)
Remove a specific texture alias name from the sub mesh.
VertexBoneAssignmentList mBoneAssignments
BoneAssignmentIterator getBoneAssignmentIterator(void)
Gets an iterator for access all bone assignments.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
vector< unsigned short >::type IndexMap
Dedicated index map for translate blend index to bone index (only valid if useSharedVertices = false)...
SubMesh * clone(const String &newName, Mesh *parentMesh=0)
Makes a copy of this submesh object and gives it a new name.
bool mBuildEdgesEnabled
Is Build Edges Enabled.
VertexAnimationType
Type of vertex animation.
Class for providing backwards-compatibility for loading version 1.1 of the .mesh format.
const String & getMaterialName(void) const
void setMaterialName(const String &matName, const String &groupName=ResourceGroupManager::AUTODETECT_RESOURCE_GROUP_NAME)
Sets the name of the Material which this SubMesh will use.
static String AUTODETECT_RESOURCE_GROUP_NAME
Special resource group name which causes resource group to be automatically determined based on searc...
void clearBoneAssignments(void)
Removes all bone assignments for this mesh.
IndexData * indexData
Face index data.
bool isMatInitialised(void) const
Returns true if a material has been assigned to the submesh, otherwise returns false.
RenderOperation::OperationType operationType
The render operation type used to render this submesh.
Records the assignment of a single vertex to a single bone with the corresponding weight.
void addTextureAlias(const String &aliasName, const String &textureName)
Adds the alias or replaces an existing one and associates the texture name to it.
VertexAnimationType mVertexAnimationType
Type of vertex animation for dedicated vertex data (populated by Mesh)
AliasTextureNamePairList mTextureAliases
paired list of texture aliases and texture names
Summary class collecting together vertex source information.
bool useSharedVertices
Indicates if this submesh shares vertex data with other meshes or whether it has it's own vertices.
void removeAllTextureAliases(void)
removes all texture aliases from the sub mesh
vector< IndexData * >::type LODFaceList
IndexMap blendIndexToBoneIndexMap
Defines a part of a complete mesh.
multimap< size_t, VertexBoneAssignment >::type VertexBoneAssignmentList
Multimap of verex bone assignments (orders by vertex index)
map< String, String >::type AliasTextureNamePairList
Alias / Texture name pair (first = alias, second = texture name)
void setBuildEdgesEnabled(bool b)
AliasTextureIterator getAliasTextureIterator(void) const
Gets an constant iterator to access all texture alias names assigned to this submesh.
Concrete IteratorWrapper for nonconst access to the underlying key-value container.
bool mVertexAnimationIncludesNormals
Whether normals are included in vertex animation keyframes.
MapIterator< VertexBoneAssignmentList > BoneAssignmentIterator
void removeLodLevels(void)
Internal method for removing LOD data.
Mesh * parent
Reference to parent Mesh (not a smart pointer so child does not keep parent alive).
void addBoneAssignment(const VertexBoneAssignment &vertBoneAssign)
Assigns a vertex to a bone with a given weight, for skeletal animation.
void _compileBoneAssignments(void)
Must be called once to compile bone assignments into geometry buffer.
bool isBuildEdgesEnabled(void) const
Returns true(by default) if the submesh should be included in the mesh EdgeList, otherwise returns fa...
Resource holding data about 3D mesh.
Concrete IteratorWrapper for const access to the underlying key-value container.
bool hasTextureAliases(void) const
returns true if the sub mesh has texture aliases
bool getVertexAnimationIncludesNormals() const
Returns whether animation on dedicated vertex data includes normals.
VertexAnimationType getVertexAnimationType(void) const
Get the type of any vertex animation used by dedicated geometry.
OperationType
The rendering operation type to perform.
bool mMatInitialised
Is there a material yet?
size_t getTextureAliasCount(void) const
Gets the number of texture aliases assigned to the sub mesh.
Internal implementation of Mesh reading / writing for the latest version of the .mesh format.
const VertexBoneAssignmentList & getBoneAssignments()
Gets a const reference to the list of bone assignments.
bool mBoneAssignmentsOutOfDate
Flag indicating that bone assignments need to be recompiled.
void _getRenderOperation(RenderOperation &rend, ushort lodIndex=0)
Returns a RenderOperation structure required to render this mesh.
Summary class collecting together index data source information.
'New' rendering operation using vertex buffers.
VertexData * vertexData
Dedicated vertex data (only valid if useSharedVertices = false).
ConstMapIterator< AliasTextureNamePairList > AliasTextureIterator
vector< Vector3 >::type extremityPoints
A list of extreme points on the submesh (optional).
void generateExtremes(size_t count)
Generate the submesh extremes (.
String mMaterialName
Name of the material this SubMesh uses.
Class for providing backwards-compatibility for loading version 1.2 of the .mesh format.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.