#include <submesh.h>
Inheritance diagram for SubMesh:
Public Types | |
enum | SUBMESHTYPE { SUBMESH = 0x0001, ANIMATEDSUBMESH = 0x0002, SKELETALSUBMESH = 0x0003, PATCHSURFACE = 0x0004 } |
Supported sub mesh types. More... | |
Public Member Functions | |
SubMesh () | |
SubMesh (const SubMesh &rkSubMesh) | |
virtual | ~SubMesh () |
virtual void | Update (float fDeltaTime) |
virtual VertexBufferPtr & | GetVertexBuffer () |
virtual PolygonBufferPtr & | GetPolygonBuffer () |
virtual void | SetVertexBuffer (VertexBufferPtr pkVertices) |
virtual void | SetPolygonBuffer (PolygonBufferPtr pkPolygons) |
virtual void | SetShadowVertexBuffer (VertexBufferPtr pkVertices) |
virtual void | SetShadowPolygonBuffer (PolygonBufferPtr pkPolygons) |
virtual SubMesh * | Duplicate () const |
virtual unsigned int | GetType () const |
virtual void | Render (RenderPrimitive *pkPrimitive, Frustum *pkFrustum=0) |
bool | IsActive () const |
virtual void | Activate () |
virtual void | Deactivate () |
bool | Toggle () |
Public Attributes | |
MaterialPtr | m_pkMaterial |
bool | m_bChanged |
Protected Member Functions | |
virtual void | UpdateData () |
Protected Attributes | |
VertexBufferPtr | m_pkVertices |
PolygonBufferPtr | m_pkPolygons |
bool | m_bNeedUpdate |
VertexBufferPtr | m_pkShadowVertices |
PolygonBufferPtr | m_pkShadowPolygons |
bool | m_bActive |
|
Supported sub mesh types.
|
|
|
|
|
|
|
|
Update data Reimplemented in AnimatedSubMesh, PatchSurfaceSubMesh, and SkeletalSubMesh. |
|
Update this submesh
Reimplemented from UpdateEntity. Reimplemented in AnimatedSubMesh, and SkeletalSubMesh. |
|
Reimplemented in SkeletalSubMesh. |
|
|
|
Reimplemented in PatchSurfaceSubMesh. |
|
Reimplemented in PatchSurfaceSubMesh. |
|
|
|
|
|
Reimplemented in AnimatedSubMesh, PatchSurfaceSubMesh, and SkeletalSubMesh. |
|
Reimplemented in AnimatedSubMesh, PatchSurfaceSubMesh, and SkeletalSubMesh. |
|
Render submesh geometry
|
|
Query state of object
|
|
Activate object |
|
Deactivate object |
|
Toggle active state. This method does not need to be overloaded, it is only a wrapper to Activate and Deactivate
|
|
Vertex buffer |
|
Polygon buffer |
|
Flag indicating update needed |
|
Shadow vertex buffer |
|
Shadow polygon buffer |
|
|
Flag indicating geometry has changed |
|
Active flag |