Flutter Engine
The Flutter Engine
|
#include <animation_clip.h>
Public Member Functions | |
AnimationClip (std::shared_ptr< Animation > animation, Node *bind_target) | |
~AnimationClip () | |
AnimationClip (AnimationClip &&) | |
AnimationClip & | operator= (AnimationClip &&) |
bool | IsPlaying () const |
void | SetPlaying (bool playing) |
void | Play () |
void | Pause () |
void | Stop () |
bool | GetLoop () const |
void | SetLoop (bool looping) |
Scalar | GetPlaybackTimeScale () const |
void | SetPlaybackTimeScale (Scalar playback_speed) |
Sets the animation playback speed. Negative values make the clip play in reverse. More... | |
Scalar | GetWeight () const |
void | SetWeight (Scalar weight) |
SecondsF | GetPlaybackTime () const |
Get the current playback time of the animation. More... | |
void | Seek (SecondsF time) |
Move the animation to the specified time. The given time is clamped to the animation's playback range. More... | |
void | Advance (SecondsF delta_time) |
Advance the animation by delta_time seconds. Negative delta_time values do nothing. More... | |
void | ApplyToBindings (std::unordered_map< Node *, AnimationTransforms > &transform_decomps, Scalar weight_multiplier) const |
Applies the animation to all binded properties in the scene. More... | |
Definition at line 21 of file animation_clip.h.
impeller::scene::AnimationClip::AnimationClip | ( | std::shared_ptr< Animation > | animation, |
Node * | bind_target | ||
) |
Definition at line 17 of file animation_clip.cc.
|
default |
|
default |
void impeller::scene::AnimationClip::Advance | ( | SecondsF | delta_time | ) |
Advance the animation by delta_time
seconds. Negative delta_time
values do nothing.
Handle looping behavior.
Definition at line 81 of file animation_clip.cc.
void impeller::scene::AnimationClip::ApplyToBindings | ( | std::unordered_map< Node *, AnimationTransforms > & | transform_decomps, |
Scalar | weight_multiplier | ||
) | const |
Applies the animation to all binded properties in the scene.
Definition at line 113 of file animation_clip.cc.
bool impeller::scene::AnimationClip::GetLoop | ( | ) | const |
Definition at line 49 of file animation_clip.cc.
SecondsF impeller::scene::AnimationClip::GetPlaybackTime | ( | ) | const |
Get the current playback time of the animation.
Definition at line 73 of file animation_clip.cc.
Scalar impeller::scene::AnimationClip::GetPlaybackTimeScale | ( | ) | const |
Definition at line 57 of file animation_clip.cc.
Scalar impeller::scene::AnimationClip::GetWeight | ( | ) | const |
Definition at line 65 of file animation_clip.cc.
bool impeller::scene::AnimationClip::IsPlaying | ( | ) | const |
Definition at line 28 of file animation_clip.cc.
|
default |
void impeller::scene::AnimationClip::Pause | ( | ) |
Definition at line 40 of file animation_clip.cc.
void impeller::scene::AnimationClip::Play | ( | ) |
Definition at line 36 of file animation_clip.cc.
void impeller::scene::AnimationClip::Seek | ( | SecondsF | time | ) |
Move the animation to the specified time. The given time
is clamped to the animation's playback range.
Definition at line 77 of file animation_clip.cc.
void impeller::scene::AnimationClip::SetLoop | ( | bool | looping | ) |
Definition at line 53 of file animation_clip.cc.
void impeller::scene::AnimationClip::SetPlaybackTimeScale | ( | Scalar | playback_speed | ) |
Sets the animation playback speed. Negative values make the clip play in reverse.
Definition at line 61 of file animation_clip.cc.
void impeller::scene::AnimationClip::SetPlaying | ( | bool | playing | ) |
Definition at line 32 of file animation_clip.cc.
void impeller::scene::AnimationClip::SetWeight | ( | Scalar | weight | ) |
Definition at line 69 of file animation_clip.cc.
void impeller::scene::AnimationClip::Stop | ( | ) |
Definition at line 44 of file animation_clip.cc.