- Cal3D 0.9 API Reference - |
#include <animation.h>
Inheritance diagram for CalAnimation:
Public Types | |
enum | Type { TYPE_NONE = 0, TYPE_CYCLE, TYPE_POSE, TYPE_ACTION } |
enum | State { STATE_NONE = 0, STATE_SYNC, STATE_ASYNC, STATE_IN, STATE_STEADY, STATE_OUT } |
Public Methods | |
virtual | ~CalAnimation () |
Destructs the animation instance. More... | |
virtual bool | create (CalCoreAnimation *pCoreAnimation)=0 |
virtual void | destroy () |
Destroys the animation instance. More... | |
CalCoreAnimation * | getCoreAnimation () |
Provides access to the core animation. More... | |
State | getState () |
Returns the state. More... | |
float | getTime () |
Returns the time. More... | |
Type | getType () |
Returns the type. More... | |
float | getWeight () |
Returns the weight. More... | |
void | setTime (float time) |
Set the time. More... | |
Protected Methods | |
CalAnimation () | |
Constructs the animation instance. More... | |
Protected Attributes | |
CalCoreAnimation * | m_pCoreAnimation |
Type | m_type |
State | m_state |
float | m_time |
float | m_timeFactor |
float | m_weight |
|
Constructs the animation instance. This function is the default constructor of the animation instance. |
|
Destructs the animation instance. This function is the destructor of the animation instance. |
|
Destroys the animation instance. This function destroys all data stored in the animation instance and frees all allocated memory. Reimplemented in CalAnimationAction. |
|
Provides access to the core animation. This function returns the core animation on which this animation instance is based on.
|
|
Returns the state. This function returns the state of the animation instance.
|
|
Returns the time. This function returns the time of the animation instance.
|
|
Returns the type. This function returns the type of the animation instance.
|
|
Returns the weight. This function returns the weight of the animation instance.
|
|
Set the time. This function set the time of the animation instance. |