|
| SLAnimation (const SLstring &name, SLfloat duration) |
|
| ~SLAnimation () |
|
SLfloat | nextKeyframeTime (SLfloat time) |
|
SLfloat | prevKeyframeTime (SLfloat time) |
|
SLbool | affectsNode (SLNode *node) |
|
void | apply (SLfloat time, SLfloat weight=1.0f, SLfloat scale=1.0f) |
|
void | applyToNode (SLNode *node, SLfloat time, SLfloat weight=1.0f, SLfloat scale=1.0f) |
|
void | apply (SLAnimSkeleton *skel, SLfloat time, SLfloat weight=1.0f, SLfloat scale=1.0f) |
|
void | resetNodes () |
|
void | drawNodeVisuals (SLSceneView *sv) |
|
SLNodeAnimTrack * | createNodeAnimTrack () |
|
SLNodeAnimTrack * | createNodeAnimTrack (SLuint trackID) |
|
SLNodeAnimTrack * | createNodeAnimTrackForTranslation (SLNode *target, const SLVec3f &endPos) |
|
SLNodeAnimTrack * | createNodeAnimTrackForRotation (SLNode *target, SLfloat angleDeg1, const SLVec3f &axis) |
|
SLNodeAnimTrack * | createNodeAnimTrackForRotation2 (SLNode *target, SLfloat angleDeg0, SLfloat angleDeg1, const SLVec3f &axis) |
|
SLNodeAnimTrack * | createNodeAnimTrackForRotation3 (SLNode *target, SLfloat angleDeg0, SLfloat angleDeg1, SLfloat angleDeg2, const SLVec3f &axis) |
|
SLNodeAnimTrack * | createNodeAnimTrackForRotation4 (SLNode *target, SLfloat angleDeg0, SLfloat angleDeg1, SLfloat angleDeg2, SLfloat angleDeg3, const SLVec3f &axis) |
|
SLNodeAnimTrack * | createNodeAnimTrackForRotation360 (SLNode *target, const SLVec3f &axis) |
|
SLNodeAnimTrack * | createNodeAnimTrackForScaling (SLNode *target, const SLVec3f &endScale) |
|
SLNodeAnimTrack * | createNodeAnimTrackForEllipse (SLNode *target, SLfloat radiusA, SLAxis axisA, SLfloat radiusB, SLAxis axisB) |
|
const SLstring & | name () |
|
SLfloat | lengthSec () const |
|
void | name (const SLstring &name) |
|
void | lengthSec (SLfloat lengthSec) |
|
SLAnimation is the base container for all animation data.
SLAnimation is a container for multiple SLAnimTrack that build an animation. E.g. a walk animation would consist of all the SLAnimTrack that make a SLAnimSkeleton walk. It also knows the length of the animation.
An animation for a SLAnimSkeleton with n joints must consist of 1 to n SLNodeAnimTrack. The SLAnimation class keeps a map with index -> SLNodeAnimTrack pairs, the index for the SLNodeAnimTrack must match the index of a bone in the target SLAnimSkeleton. This method allows us to animate multiple identical, or similar SLSkeletons with the same SLAnimation.