![]() |
Public API Reference |
#include <polymesh.h>
Inheritance diagram for iPolygonMesh:
Public Methods | |
virtual int | GetVertexCount ()=0 |
Get the number of vertices for this mesh. More... | |
virtual csVector3 * | GetVertices ()=0 |
Get the pointer to the array of vertices. More... | |
virtual int | GetPolygonCount ()=0 |
Get the number of polygons for this mesh. More... | |
virtual csMeshedPolygon * | GetPolygons ()=0 |
Get the pointer to the array of polygons. More... | |
virtual void | Cleanup ()=0 |
Cleanup: this is called by the polygon mesh user when it is ready extracting the data from the iPolygonMesh. More... | |
virtual bool | IsDeformable () const=0 |
Is this a deformable mesh? If yes you can use GetChangeNumber() to detect if a change actually occured. More... | |
virtual uint32 | GetChangeNumber () const=0 |
When this number changes you know the polygon mesh has changed (deformation has occured) since the last time you got another number from this function. More... |
It is useful to communicate geometry information outside of the engine. One place where this will be useful is for communicating geometry information to the collision detection plugin.
All Crystal Space mesh objects (things, sprites, ...) should implement and/or embed an implementation of this interface.
A polygon mesh has the concept of a vertex buffer and an array of polygons.
Definition at line 54 of file polymesh.h.
|
Cleanup: this is called by the polygon mesh user when it is ready extracting the data from the iPolygonMesh. This gives the polygon mesh a chance to clean up some stuff. |
|
When this number changes you know the polygon mesh has changed (deformation has occured) since the last time you got another number from this function.
|
|
Get the number of polygons for this mesh.
|
|
Get the pointer to the array of polygons.
|
|
Get the number of vertices for this mesh.
|
|
Get the pointer to the array of vertices.
|
|
Is this a deformable mesh? If yes you can use GetChangeNumber() to detect if a change actually occured.
|