- Cal3D 0.9 API Reference - |
#include <morphtargetmixer.h>
Public Methods | |
CalMorphTargetMixer () | |
Constructs the morph target mixer instance. More... | |
virtual | ~CalMorphTargetMixer () |
Destructs the morph target mixer instance. More... | |
bool | blend (int id, float weight, float delay) |
Interpolates the weight of a morph target. More... | |
bool | blendBase (float weight, float delay) |
Interpolates the weight of the base vertices. More... | |
bool | clear (int id, float delay) |
Fades a morph target out. More... | |
bool | clearBase (float delay) |
Fades the base vertices out. More... | |
float | getCurrentWeight (int id) |
Get the weight of a morph target. More... | |
float | getCurrentWeightBase () |
Get the weight of the base vertices. More... | |
int | getMorphTargetCount () |
Returns the number of morph targets this morph target mixer mixes. More... | |
bool | create (CalMesh *pMesh) |
Creates the morph target mixer instance. More... | |
void | destroy () |
Destroys the morph target mixer instance. More... | |
void | update (float deltaTime) |
Updates all morph targets. More... | |
Protected Attributes | |
std::vector< float > | m_vectorCurrentWeight |
std::vector< float > | m_vectorEndWeight |
float | m_duration |
CalMesh * | m_pMesh |
|
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.
|
|
Interpolates the weight of the base vertices. This function interpolates the weight of the base vertices 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.
|
|
Fades the base vertices out. This function fades the base vertices 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.
|