#include <glfxscene.h>
Public Member Functions | |
void | SetLength (unsigned long frameCount, float startTime, float frequency) |
void | Initialize (unsigned long nodeCount) |
void | SetName (const char *name) |
const char * | GetName () const |
float | GetStartTime () const |
float | GetEndTime () const |
float | GetLength () const |
unsigned long | GetFrameCount () const |
unsigned long | GetNodeCount () const |
Frame & | GetFrame (unsigned long frame, unsigned long node) |
const Frame & | GetFrame (unsigned long frame, unsigned long node) const |
void | ApplyAnimation (Node *node, float time) const |
void | ConvertTimeToFrameInterp (float time, unsigned long &frame, float &interp) const |
void | MultAnimation (Node *node, float time) const |
void | ApplyAnimationBlend (Node *node, float time, const Animation *otherAnim, float otherTime, float otherWeight) |
void | MultAnimationBlend (Node *node, float time, const Animation *otherAnim, float otherTime, float otherWeight) |
void GLFX::Scene::Animation::SetLength | ( | unsigned long | frameCount, | |
float | startTime, | |||
float | frequency | |||
) | [inline] |
Set animation length.
frameCount | number of animation frames | |
startTime | animation start time | |
frequency | animation frequency (frames per second) |
void GLFX::Scene::Animation::Initialize | ( | unsigned long | nodeCount | ) | [inline] |
Initialize animation.
nodeCount | initial node count |
void GLFX::Scene::Animation::SetName | ( | const char * | name | ) | [inline] |
Sets animation name.
name | new name |
const char* GLFX::Scene::Animation::GetName | ( | ) | const [inline] |
Gets animation name.
float GLFX::Scene::Animation::GetStartTime | ( | ) | const [inline] |
Gets animation start time.
float GLFX::Scene::Animation::GetEndTime | ( | ) | const [inline] |
Gets animation finish time.
float GLFX::Scene::Animation::GetLength | ( | ) | const [inline] |
Gets animation length in seconds.
unsigned long GLFX::Scene::Animation::GetFrameCount | ( | ) | const [inline] |
Gets number of frames.
unsigned long GLFX::Scene::Animation::GetNodeCount | ( | ) | const [inline] |
Gets number of nodes animated.
Frame& GLFX::Scene::Animation::GetFrame | ( | unsigned long | frame, | |
unsigned long | node | |||
) | [inline] |
Gets frame for the given node.
frame | frame number | |
node | node number |
const Frame& GLFX::Scene::Animation::GetFrame | ( | unsigned long | frame, | |
unsigned long | node | |||
) | const [inline] |
Gets frame for the given node.
frame | frame number | |
node | node number |
void GLFX::Scene::Animation::ApplyAnimation | ( | Node * | node, | |
float | time | |||
) | const [inline] |
Applies animation to hierarchy of nodes.
node | scene root | |
time | frame time |
void GLFX::Scene::Animation::ConvertTimeToFrameInterp | ( | float | time, | |
unsigned long & | frame, | |||
float & | interp | |||
) | const [inline] |
Converts time to frame number and interpolation ammount between current and next frame.
time | animation time | |
frame | frame number for animation time | |
interp | interpolation value |
void GLFX::Scene::Animation::MultAnimation | ( | Node * | node, | |
float | time | |||
) | const [inline] |
Mutltiply node hierarchy by animation frame.
node | scene root | |
time | frame time |
void GLFX::Scene::Animation::ApplyAnimationBlend | ( | Node * | node, | |
float | time, | |||
const Animation * | otherAnim, | |||
float | otherTime, | |||
float | otherWeight | |||
) | [inline] |
Apply a blend of two animations.
node | scene root | |
time | animation time | |
otherAnim | other animation | |
otherTime | other animation time | |
otherWeight | other animatio weight |
void GLFX::Scene::Animation::MultAnimationBlend | ( | Node * | node, | |
float | time, | |||
const Animation * | otherAnim, | |||
float | otherTime, | |||
float | otherWeight | |||
) | [inline] |
Multiply node hierarchy by animation blend.
node | scene root | |
time | animation time | |
otherAnim | other animation | |
otherTime | other animation time | |
otherWeight | other animatio weight |