![]() |
Public API Reference |
![]() |
The proto mesh is a demonstration or tutorial mesh. More...
#include <imesh/protomesh.h>
Public Member Functions | |
virtual csColor * | GetColors ()=0 |
Get the array of colors. | |
virtual csVector3 * | GetNormals ()=0 |
Get the array of normals. | |
virtual csVector2 * | GetTexels ()=0 |
Get the array of texels. | |
virtual csTriangle * | GetTriangles ()=0 |
Get the array of triangles. | |
virtual csVector3 * | GetVertices ()=0 |
Get the array of vertices. | |
virtual void | Invalidate ()=0 |
After making a significant change to the vertices or triangles you probably want to let this object recalculate the bounding boxes and such. |
The proto mesh is a demonstration or tutorial mesh.
It is very simple and really unusable in games but it is a very good start to make a new mesh object.
The proto mesh supports:
The general API for the proto factory. Here you define the actual geometry which is shared between all proto mesh instances.
Main creators of instances implementing this interface:
Main ways to get pointers to this interface:
Main users of this interface:
Definition at line 68 of file protomesh.h.
virtual csColor* iProtoFactoryState::GetColors | ( | ) | [pure virtual] |
Get the array of colors.
It is legal to modify the colors in this array. The number of colors in this array is guaranteed to be equal to 8.
virtual csVector3* iProtoFactoryState::GetNormals | ( | ) | [pure virtual] |
Get the array of normals.
It is legal to modify the normals in this array. The number of normals in this array is guaranteed to be equal to 8.
virtual csVector2* iProtoFactoryState::GetTexels | ( | ) | [pure virtual] |
Get the array of texels.
It is legal to modify the texels in this array. The number of texels in this array is guaranteed to be equal to 8.
virtual csTriangle* iProtoFactoryState::GetTriangles | ( | ) | [pure virtual] |
Get the array of triangles.
It is legal to modify the triangles in this array. The number of triangles in this array is guaranteed to be equal to 12.
virtual csVector3* iProtoFactoryState::GetVertices | ( | ) | [pure virtual] |
Get the array of vertices.
It is legal to modify the vertices in this array. The number of vertices in this array is guaranteed to be equal to 8.
virtual void iProtoFactoryState::Invalidate | ( | ) | [pure virtual] |
After making a significant change to the vertices or triangles you probably want to let this object recalculate the bounding boxes and such.
This function will invalidate the internal data structures so that they are recomputed.