| - Cal3D 0.9 API Reference - |
#include <mesh.h>
Public Methods | |
| CalMesh () | |
| Constructs the mesh instance. More... | |
| virtual | ~CalMesh () |
| Destructs the mesh instance. More... | |
| bool | create (CalCoreMesh *pCoreMesh) |
| Creates the mesh instance. More... | |
| void | destroy () |
| Destroys the mesh instance. More... | |
| CalCoreMesh * | getCoreMesh () |
| Provides access to the core mesh. More... | |
| CalSubmesh * | getSubmesh (int id) |
| Provides access to a submesh. More... | |
| int | getSubmeshCount () |
| Returns the number of submeshes. More... | |
| std::vector< CalSubmesh * > & | getVectorSubmesh () |
| Returns the submesh vector. More... | |
| void | setLodLevel (float lodLevel) |
| Sets the LOD level. More... | |
| void | setMaterialSet (int setId) |
| Sets the material set. More... | |
| void | setModel (CalModel *pModel) |
| Sets the model. More... | |
| void | disableInternalData () |
| Disable internal data (and thus springs system). | |
| CalMorphTargetMixer * | getMorphTargetMixer () |
| Returns the morph target mixer. More... | |
Protected Attributes | |
| CalModel * | m_pModel |
| CalCoreMesh * | m_pCoreMesh |
| CalMorphTargetMixer * | m_pMorphTargetMixer |
| std::vector< CalSubmesh * > | m_vectorSubmesh |
|
|
Constructs the mesh instance. This function is the default constructor of the mesh instance. |
|
|
Destructs the mesh instance. This function is the destructor of the mesh instance. |
|
|
Creates the mesh instance. This function creates the mesh instance based on a core mesh.
|
|
|
Destroys the mesh instance. This function destroys all data stored in the mesh instance and frees all allocated memory. |
|
|
Provides access to the core mesh. This function returns the core mesh on which this mesh instance is based on.
|
|
|
Returns the morph target mixer. This function returns the morph target mixer of the mesh instance.
|
|
|
Provides access to a submesh. This function returns the submesh with the given ID.
|
|
|
Returns the number of submeshes. This function returns the number of submeshes in the mesh instance.
|
|
|
Returns the submesh vector. This function returns the vector that contains all submeshes of the mesh instance.
|
|
|
Sets the LOD level. This function sets the LOD level of the mesh instance.
|
|
|
Sets the material set. This function sets the material set of the mesh instance.
|
|
|
Sets the model. This function sets the model to which the mesh instance is attached to.
|
1.2.14
© 1997-2001
Dimitri van Heesch