|
| AnimationState (AnimatedModel *model, Animation *animation) |
| Construct with animated model and animation pointers.
|
|
| AnimationState (Node *node, Animation *animation) |
| Construct with root scene node and animation pointers.
|
|
| ~AnimationState () override |
| Destruct.
|
|
void | SetStartBone (Bone *startBone) |
|
void | SetLooped (bool looped) |
|
void | SetWeight (float weight) |
|
void | SetBlendMode (AnimationBlendMode mode) |
|
void | SetTime (float time) |
|
void | SetBoneWeight (unsigned index, float weight, bool recursive=false) |
| Set per-bone blending weight by track index. Default is 1.0 (full), is multiplied with the state's blending weight when applying the animation. Optionally recurses to child bones.
|
|
void | SetBoneWeight (const String &name, float weight, bool recursive=false) |
| Set per-bone blending weight by name.
|
|
void | SetBoneWeight (StringHash nameHash, float weight, bool recursive=false) |
| Set per-bone blending weight by name hash.
|
|
void | AddWeight (float delta) |
| Modify blending weight.
|
|
void | AddTime (float delta) |
| Modify time position. Animation triggers will be fired.
|
|
void | SetLayer (unsigned char layer) |
|
Animation * | GetAnimation () const |
|
AnimatedModel * | GetModel () const |
|
Node * | GetNode () const |
|
Bone * | GetStartBone () const |
|
float | GetBoneWeight (unsigned index) const |
| Return per-bone blending weight by track index.
|
|
float | GetBoneWeight (const String &name) const |
|
float | GetBoneWeight (StringHash nameHash) const |
| Return per-bone blending weight by name.
|
|
unsigned | GetTrackIndex (Node *node) const |
| Return track index with matching bone node, or M_MAX_UNSIGNED if not found.
|
|
unsigned | GetTrackIndex (const String &name) const |
| Return track index by bone name, or M_MAX_UNSIGNED if not found.
|
|
unsigned | GetTrackIndex (StringHash nameHash) const |
| Return track index by bone name hash, or M_MAX_UNSIGNED if not found.
|
|
bool | IsEnabled () const |
|
bool | IsLooped () const |
|
float | GetWeight () const |
|
AnimationBlendMode | GetBlendMode () const |
|
float | GetTime () const |
|
float | GetLength () const |
|
unsigned char | GetLayer () const |
|
void | Apply () |
| Apply the animation at the current time position.
|
|
| RefCounted () |
| Construct. Allocate the reference count structure and set an initial self weak reference.
|
|
virtual | ~RefCounted () |
| Destruct. Mark as expired and also delete the reference count structure if no outside weak references exist.
|
|
| RefCounted (const RefCounted &rhs)=delete |
| Prevent copy construction.
|
|
RefCounted & | operator= (const RefCounted &rhs)=delete |
| Prevent assignment.
|
|
void | AddRef () |
|
void | ReleaseRef () |
|
int | Refs () const |
|
int | WeakRefs () const |
|
RefCount * | RefCountPtr () |
| Return pointer to the reference count structure.
|
|