iGeneralMeshState Struct Reference
This interface describes the API for the general mesh object. More...
#include <imesh/genmesh.h>
Inheritance diagram for iGeneralMeshState:

Public Member Functions | |
virtual void | SetAnimationControl (iGenMeshAnimationControl *anim_ctrl)=0 |
Set the animation control to use for this mesh object. | |
virtual iGenMeshAnimationControl * | GetAnimationControl () const =0 |
Get the current animation control for this object. | |
virtual void | ClearSubMeshes ()=0 |
Remove all submeshes added to this object. | |
virtual void | AddSubMesh (unsigned int *triangles, int tricount, iMaterialWrapper *material)=0 |
Add a submesh to this object. |
Detailed Description
This interface describes the API for the general mesh object.Main creators of instances implementing this interface:
- Genmesh mesh object plugin (crystalspace.mesh.object.genmesh)
- iMeshObjectFactory::NewInstance()
- Genmesh Loader plugin (crystalspace.mesh.loader.genmesh)
Definition at line 118 of file genmesh.h.
Member Function Documentation
|
Add a submesh to this object. A submesh is a subset of the mesh triangles rendered with a certain material. When a mesh has one or more submeshes, only submeshes are drawn and not original geometry. That means submeshes should cover all original triangles to avoid holes in the mesh. triangles is an array of indices into the factory triangle list tricount is the number of triangles in "triangles" material is a material to assign to the mesh |
|
Remove all submeshes added to this object.
|
|
Get the current animation control for this object.
|
|
Set the animation control to use for this mesh object. See iGenMeshAnimationControl for more information. |
The documentation for this struct was generated from the following file:
- imesh/genmesh.h
Generated for Crystal Space by doxygen 1.3.9.1