- Cal3D 0.11 API Reference - |
Public Member Functions | |
CalAnimationCycle (CalCoreAnimation *pCoreAnimation) | |
Constructs the animation cycle instance. More... | |
bool | blend (float weight, float delay) |
Interpolates the weight of the animation cycle instance. More... | |
void | setAsync (float time, float duration) |
Puts the animation cycle instance into async state. More... | |
bool | update (float deltaTime) |
Updates the animation cycle instance. More... | |
![]() | |
CalCoreAnimation * | getCoreAnimation () |
Provides access to the core animation. More... | |
const CalCoreAnimation * | getCoreAnimation () const |
Provides access to the core animation. More... | |
State | getState () const |
Returns the state. More... | |
float | getTime () const |
Returns the time. More... | |
Type | getType () const |
Returns the type. More... | |
float | getWeight () const |
Returns the weight. More... | |
void | setTime (float time) |
Set the time. More... | |
void | setTimeFactor (float timeFactor) |
Set the time factor. More... | |
float | getTimeFactor () const |
Get the time factor. More... | |
void | checkCallbacks (float animationTime, CalModel *model) |
void | completeCallbacks (CalModel *model) |
Additional Inherited Members | |
![]() | |
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, STATE_STOPPED } |
enum | CompositionFunction { CompositionFunctionNull = 0, CompositionFunctionReplace, CompositionFunctionAverage, CompositionFunctionCrossFade } |
![]() | |
CalAnimation (CalCoreAnimation *pCoreAnimation) | |
void | setType (Type type) |
void | setState (State state) |
void | setWeight (float weight) |
CalAnimationCycle::CalAnimationCycle | ( | CalCoreAnimation * | pCoreAnimation | ) |
Constructs the animation cycle instance.
This function is the default constructor of the animation cycle instance.
bool CalAnimationCycle::blend | ( | float | weight, |
float | delay | ||
) |
Interpolates the weight of the animation cycle instance.
This function interpolates the weight of the animation cycle instance to a new value in a given amount of time.
weight | The weight to interpolate the animation cycle instance to. |
delay | The time in seconds until the new weight should be reached. |
void CalAnimationCycle::setAsync | ( | float | time, |
float | duration | ||
) |
Puts the animation cycle instance into async state.
This function puts the animation cycle instance into async state, which means that it will end after the current running cycle.
time | The time in seconds at which the animation cycle instance was unlinked from the global mixer animation cycle. |
duration | The current duration of the global mixer animation cycle in seconds at the time of the unlinking. |
bool CalAnimationCycle::update | ( | float | deltaTime | ) |
Updates the animation cycle instance.
This function updates the animation cycle instance for a given amount of time.
deltaTime | The elapsed time in seconds since the last update. |