iProtoFactoryState Struct Reference
The proto mesh is a demonstration or tutorial mesh. More...
#include <imesh/protomesh.h>
Inheritance diagram for iProtoFactoryState:

Public Member Functions | |
virtual csVector3 * | GetVertices ()=0 |
Get the array of vertices. | |
virtual csVector2 * | GetTexels ()=0 |
Get the array of texels. | |
virtual csVector3 * | GetNormals ()=0 |
Get the array of normals. | |
virtual csColor * | GetColors ()=0 |
Get the array of colors. | |
virtual csTriangle * | GetTriangles ()=0 |
Get the array of triangles. | |
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. |
Detailed Description
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. It supports only the new renderer but should compile with old renderer too (just not visible then).
The proto mesh supports:
- Primitive geometry (8 vertices, 12 triangles, just enough for a box).
- Setting of base color and per vertex color.
- Setting of vertices, texels, and normals.
- Material per mesh object.
- Sharing geometry in the factory.
- Collision detection.
- Direct creation of render buffers.
- Delayed creation of render buffers.
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:
- Protomesh mesh object plugin (crystalspace.mesh.object.protomesh)
- iMeshObjectType::NewFactory()
- Protomesh Factory Loader plugin (crystalspace.mesh.loader.factory.protomesh)
Definition at line 69 of file protomesh.h.
Member Function Documentation
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
The documentation for this struct was generated from the following file:
- imesh/protomesh.h
Generated for Crystal Space by doxygen 1.3.9.1