![]() |
Public API Reference |
#include <clothmesh.h>
Inheritance diagram for iClothFactoryState:
Public Methods | |
virtual void | SetMaterialWrapper (iMaterialWrapper *material)=0 |
Set material of factory. More... | |
virtual iMaterialWrapper * | GetMaterialWrapper () const=0 |
Get material of factory. More... | |
virtual void | SetVertexCount (int n)=0 |
Set the number of vertices to use for this mesh. More... | |
virtual int | GetVertexCount () const=0 |
Get the number of vertices for this mesh. More... | |
virtual csVector3 * | GetVertices ()=0 |
Get the array of vertices. More... | |
virtual csVector2 * | GetTexels ()=0 |
Get the array of texels. More... | |
virtual csVector3 * | GetNormals ()=0 |
Get the array of normals. More... | |
virtual void | SetTriangleCount (int n)=0 |
Set the number of triangles to use for this mesh. More... | |
virtual int | GetTriangleCount () const=0 |
Get the number of triangles for this mesh. More... | |
virtual csTriangle * | GetTriangles ()=0 |
Get the array of triangles. More... | |
virtual csColor * | GetColors ()=0 |
Get the array of colors. More... | |
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. More... | |
virtual void | CalculateNormals ()=0 |
Automatically calculate normals based on the current mesh. More... | |
virtual void | GenerateFabric (uint Xsize, uint Ysize)=0 |
Automatically generate a squared cloth. More... |
Definition at line 72 of file clothmesh.h.
|
Automatically calculate normals based on the current mesh.
|
|
Automatically generate a squared cloth.
|
|
Get the array of colors. It is legal to modify the colors in this array. The number of colors in this array will be equal to the number of vertices set. Note that modifying the colors will not do a lot if manual colors is not enabled (SetManualColors). |
|
Get material of factory.
|
|
Get the array of normals. It is legal to modify the normals in this array. The number of normals in this array will be equal to the number of vertices set. Note that modifying the normals is only useful when manual colors are not enabled and lighting is enabled because the normals are used for lighting. |
|
Get the array of texels. It is legal to modify the texels in this array. The number of texels in this array will be equal to the number of vertices set. |
|
Get the number of triangles for this mesh.
|
|
Get the array of triangles. It is legal to modify the triangles in this array. The number of triangles in this array will be equal to the number of triangles set. |
|
Get the number of vertices for this mesh.
|
|
Get the array of vertices. It is legal to modify the vertices in this array. The number of vertices in this array will be equal to the number of vertices set. |
|
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. |
|
Set material of factory.
|
|
Set the number of triangles to use for this mesh.
|
|
Set the number of vertices to use for this mesh.
|