#include <polymesh.h>
Inheritance diagram for iPolygonMesh:
Public Methods | |
virtual int | GetVertexCount ()=0 |
Get the number of vertices for this mesh. | |
virtual csVector3* | GetVertices ()=0 |
Get the pointer to the array of vertices. | |
virtual int | GetPolygonCount ()=0 |
Get the number of polygons for this mesh. | |
virtual csMeshedPolygon* | GetPolygons ()=0 |
Get the pointer to the array of polygons. | |
virtual void | Cleanup ()=0 |
Cleanup: this is called by the collider system when it is ready extracting the data from the iPolygonMesh. 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.
|
Cleanup: this is called by the collider system when it is ready extracting the data from the iPolygonMesh. This gives the polygon mesh a chance to clean up some stuff. |