| - Cal3D 0.9 API Reference - |
#include <morphtargetmixer.h>
Public Member Functions | |
| CalMorphTargetMixer () | |
| Constructs the morph target mixer instance. | |
| virtual | ~CalMorphTargetMixer () |
| Destructs the morph target mixer instance. | |
| bool | blend (int id, float weight, float delay) |
| Interpolates the weight of a morph target. | |
| bool | clear (int id, float delay) |
| Fades a morph target out. | |
| float | getCurrentWeight (int id) |
| Get the weight of a morph target. | |
| float | getCurrentWeightBase () |
| Get the weight of the base vertices. | |
| int | getMorphTargetCount () |
| Returns the number of morph targets this morph target mixer mixes. | |
| bool | create (CalModel *pModel) |
| Creates the morph target mixer instance. | |
| void | destroy () |
| Destroys the morph target mixer instance. | |
| void | update (float deltaTime) |
| Updates all morph targets. | |
Protected Attributes | |
| std::vector< float > | m_vectorCurrentWeight |
| std::vector< float > | m_vectorEndWeight |
| std::vector< float > | m_vectorDuration |
| CalModel * | m_pModel |
|
|
Constructs the morph target mixer instance. This function is the default constructor of the morph target mixer instance. |
|
|
Destructs the morph target mixer instance. This function is the destructor of the morph target mixer instance. |
|
||||||||||||||||
|
Interpolates the weight of a morph target. This function interpolates the weight of a morph target a new value in a given amount of time.
|
|
||||||||||||
|
Fades a morph target out. This function fades a morph target out in a given amount of time.
|
|
|
Creates the morph target mixer instance. This function creates the mixer instance.
|
|
|
Destroys the morph target mixer instance. This function destroys all data stored in the mixer instance and frees all allocated memory. |
|
|
Get the weight of a morph target.
|
|
|
Get the weight of the base vertices.
|
|
|
Returns the number of morph targets this morph target mixer mixes.
|
|
|
Updates all morph targets. This function updates all morph targets of the mixer instance for a given amount of time.
|
1.4.2
© 1997-2001
Dimitri van Heesch