CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

iGeneralMeshState Struct Reference

This interface describes the API for the general mesh object. More...

#include <imesh/genmesh.h>

Inheritance diagram for iGeneralMeshState:

iGeneralMeshCommonState iBase List of all members.

Public Member Functions

virtual void SetAnimationControl (iGenMeshAnimationControl *anim_ctrl)=0
 Set the animation control to use for this mesh object.
virtual iGenMeshAnimationControlGetAnimationControl () 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:

Main ways to get pointers to this interface: Main users of this interface:

Definition at line 118 of file genmesh.h.


Member Function Documentation

virtual void iGeneralMeshState::AddSubMesh unsigned int *  triangles,
int  tricount,
iMaterialWrapper material
[pure virtual]
 

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

virtual void iGeneralMeshState::ClearSubMeshes  )  [pure virtual]
 

Remove all submeshes added to this object.

virtual iGenMeshAnimationControl* iGeneralMeshState::GetAnimationControl  )  const [pure virtual]
 

Get the current animation control for this object.

virtual void iGeneralMeshState::SetAnimationControl iGenMeshAnimationControl anim_ctrl  )  [pure virtual]
 

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:
Generated for Crystal Space by doxygen 1.3.9.1