| - Cal3D 0.9 API Reference - |
#include <mixer.h>
Public Methods | |
| CalMixer () | |
| Constructs the mixer instance. More... | |
| virtual | ~CalMixer () |
| Destructs the mixer instance. More... | |
| bool | blendCycle (int id, float weight, float delay) |
| Interpolates the weight of an animation cycle. More... | |
| bool | clearCycle (int id, float delay) |
| Fades an animation cycle out. More... | |
| bool | create (CalModel *pModel) |
| Creates the mixer instance. More... | |
| void | destroy () |
| Destroys the mixer instance. More... | |
| bool | executeAction (int id, float delayIn, float delayOut, float weightTarget=1.0f) |
| Executes an animation action. More... | |
| void | updateAnimation (float deltaTime) |
| Updates all active animations. More... | |
| void | updateSkeleton () |
| Updates the skeleton. More... | |
| float | getAnimationTime () |
| Returns the animation time. More... | |
| float | getAnimationDuration () |
| Returns the animation duration. More... | |
| void | setAnimationTime (float animationTime) |
| Sets the animation time. More... | |
Public Attributes | |
| CalModel * | m_pModel |
| std::vector< CalAnimation * > | m_vectorAnimation |
| std::list< CalAnimationAction * > | m_listAnimationAction |
| std::list< CalAnimationCycle * > | m_listAnimationCycle |
| float | m_animationTime |
| float | m_animationDuration |
|
|
Constructs the mixer instance. This function is the default constructor of the mixer instance. |
|
|
Destructs the mixer instance. This function is the destructor of the mixer instance. |
|
||||||||||||||||
|
Interpolates the weight of an animation cycle. This function interpolates the weight of an animation cycle to a new value in a given amount of time. If the specified animation cycle is not active yet, it is activated.
|
|
||||||||||||
|
Fades an animation cycle out. This function fades an animation cycle out in a given amount of time.
|
|
|
Creates the mixer instance. This function creates the mixer instance.
|
|
|
Destroys the mixer instance. This function destroys all data stored in the mixer instance and frees all allocated memory. |
|
||||||||||||||||||||
|
Executes an animation action. This function executes an animation action.
|
|
|
Returns the animation duration. This function returns the animation duration of the mixer instance.
|
|
|
Returns the animation time. This function returns the animation time of the mixer instance.
|
|
|
Sets the animation time. This function sets the animation time of the mixer instance. |
|
|
Updates all active animations. This function updates all active animations of the mixer instance for a given amount of time.
|
|
|
Updates the skeleton. This function updates the skeleton to match the current animation state. |
1.2.14
© 1997-2001
Dimitri van Heesch