| - Cal3D 0.9 API Reference - |
#include <model.h>
Public Methods | |
| CalModel () | |
| Constructs the model instance. More... | |
| virtual | ~CalModel () |
| Destructs the model instance. More... | |
| bool | attachMesh (int coreMeshId) |
| Attachs a mesh. More... | |
| bool | create (CalCoreModel *pCoreModel) |
| Creates the model instance. More... | |
| void | destroy () |
| Destroys the model instance. More... | |
| bool | detachMesh (int coreMeshId) |
| Detaches a mesh. More... | |
| CalCoreModel * | getCoreModel () |
| Provides access to the core model. More... | |
| CalMesh * | getMesh (int coreMeshId) |
| Provides access to an attached mesh. More... | |
| CalMixer * | getMixer () |
| Provides access to the mixer. More... | |
| CalPhysique * | getPhysique () |
| Provides access to the physique. More... | |
| CalRenderer * | getRenderer () |
| Provides access to the renderer. More... | |
| CalSkeleton * | getSkeleton () |
| Provides access to the skeleton. More... | |
| CalSpringSystem * | getSpringSystem () |
| Provides access to the spring system. More... | |
| Cal::UserData | getUserData () |
| Provides access to the user data. More... | |
| std::vector< CalMesh * > & | getVectorMesh () |
| Returns the mesh vector. More... | |
| void | setLodLevel (float lodLevel) |
| Sets the LOD level. More... | |
| void | setMaterialSet (int setId) |
| Sets the material set. More... | |
| void | setUserData (Cal::UserData userData) |
| Stores user data. More... | |
| void | update (float deltaTime) |
| Updates the model instance. More... | |
| void | disableInternalData () |
| Disable internal data (and thus springs system). | |
Protected Attributes | |
| CalCoreModel * | m_pCoreModel |
| CalSkeleton * | m_pSkeleton |
| CalMixer * | m_pMixer |
| CalPhysique * | m_pPhysique |
| CalSpringSystem * | m_pSpringSystem |
| CalRenderer * | m_pRenderer |
| Cal::UserData | m_userData |
| std::vector< CalMesh * > | m_vectorMesh |
|
|
Constructs the model instance. This function is the default constructor of the model instance. |
|
|
Destructs the model instance. This function is the destructor of the model instance. |
|
|
Attachs a mesh. This function attachs a mesh to the model instance.
|
|
|
Creates the model instance. This function creates the model instance based on a core model.
|
|
|
Destroys the model instance. This function destroys all data stored in the model instance and frees all allocated memory. |
|
|
Detaches a mesh. This function detaches a mesh from the model instance.
|
|
|
Provides access to the core model. This function returns the core model on which this model instance is based on.
|
|
|
Provides access to an attached mesh. This function returns the attached mesh with the given core mesh ID.
|
|
|
Provides access to the mixer. This function returns the mixer.
|
|
|
Provides access to the physique. This function returns the physique.
|
|
|
Provides access to the renderer. This function returns the renderer.
|
|
|
Provides access to the skeleton. This function returns the skeleton.
|
|
|
Provides access to the spring system. This function returns the spring system.
|
|
|
Provides access to the user data. This function returns the user data stored in the model instance.
|
|
|
Returns the mesh vector. This function returns the vector that contains all attached meshes of the model instance.
|
|
|
Sets the LOD level. This function sets the LOD level of all attached meshes.
|
|
|
Sets the material set. This function sets the material set of all attached meshes.
|
|
|
Stores user data. This function stores user data in the model instance.
|
|
|
Updates the model instance. This function updates the model instance for a given amount of time.
|
1.2.14
© 1997-2001
Dimitri van Heesch