40 #ifndef _graphicsmesh_cpp
41 #define _graphicsmesh_cpp
43 #include "Graphics/mesh.h"
44 #include "Graphics/submesh.h"
90 if( !InternalMesh.isNull() ) {
91 Whole SubMeshCount = InternalMesh->getNumSubMeshes();
92 for(
Whole SubMeshIndex = 0 ; SubMeshIndex < SubMeshCount ; ++SubMeshIndex )
94 this->
SubMeshes.push_back(
new SubMesh( InternalMesh->getSubMesh(SubMeshIndex) ) );
102 {
delete (*SubMeshIt); }
113 { Ret += (*SubMeshIt)->GetVertexCount(); }
121 { Ret += (*SubMeshIt)->GetIndexCount(); }
void DestroyAllWrappedSubMeshes()
Destroys every wrapped (but not the underlying instance) SubMesh in this Mesh.
void WrapAllSubMeshes()
Constructs a Mezzanine wrapper for every SubMesh in the internal Mesh.
SubMeshContainer::const_iterator ConstSubMeshIterator
A const iterator type for SubMeshes being stored by this class.
Ogre::MeshPtr _GetInternalMesh() const
Gets the internal Mesh pointer.
This class represents a sub-section of an overall mesh.
ConstString & GetName() const
Gets the Name of this Mesh.
SubMeshContainer SubMeshes
A container storing all the SubMeshes in this Mesh.
Whole GetVertexCount() const
Gets the number of Vertices in this Mesh.
const String ConstString
A Datatype used to a series of imutable characters.
InternalMeshData * IMD
A pointer to the internal data this Mesh is based on.
This class is used to store the internal structures needed by the Mesh class.
SubMeshContainer::iterator SubMeshIterator
An iterator type for SubMeshes being stored by this class.
Mesh(Ogre::MeshPtr InternalMesh)
Internal Constructor.
Whole GetNumSubMeshes() const
Gets the number of SubMeshes in this Mesh.
Ogre::MeshPtr GraphicsMesh
The internal representation of the Mesh.
Whole GetIndexCount() const
Gets the number of Indices in this Mesh.
The bulk of the engine components go in this namspace.
unsigned long Whole
Whole is an unsigned integer, it will be at least 32bits in size.
ConstString & GetGroup() const
Gets the resource group this Mesh belongs to.
SubMesh * GetSubMesh(const Whole Index) const
Gets a SubMesh by index.