AnimationPlayback

Undocumented in source.

Members

Functions

animation
Animation* animation()

Gets the backing animation for the current playback

destroy
void destroy()

Destroys this animation instance

eof
bool eof()

Gets whether the animation has run to end

fps
int fps()

Gets the framerate of the animation

frame
int frame()

Gets the current frame of animation

frames
int frames()

Gets length in frames

hasLeadIn
bool hasLeadIn()

Gets whether the animation has lead-in

hasLeadOut
bool hasLeadOut()

Gets whether the animation has lead-out

hframe
float hframe()

Gets the current floating point (half-)frame of animation

isPlayingLeadOut
bool isPlayingLeadOut()

Gets whether the animation is playing the leadout

isRunning
bool isRunning()

Gets whether the animation is playing the main part or lead out

isValid
bool isValid()

Gets whether this instance is valid

loopPointBegin
int loopPointBegin()

Gets the frame looping begins at

loopPointEnd
int loopPointEnd()

Gets the frame looping ends at

looped
int looped()

Gets how many times the animation has looped

looping
bool looping()

Gets or sets whether this instance is looping

looping
bool looping(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
miliseconds
int miliseconds()

Gets playback miliseconds

name
string name()

Gets the name of the animation

pause
void pause()

Pauses the animation

paused
bool paused()

Gets whether this instance is currently paused

play
void play(bool loop, bool playLeadOut)

Plays the animation

playbackId
ptrdiff_t playbackId()

Gets the playback ID

playing
bool playing()

Gets whether this instance is currently playing

render
void render()

Renders the current frame of animation

seconds
int seconds()

Gets playback seconds

seek
void seek(int frame)

Seeks the animation

speed
float speed()

Gets or sets the speed multiplier for the animation

speed
float speed(bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
stop
void stop(bool immediate)

Stops the animation

stopping
bool stopping()

Gets whether this instance is currently stopping

strength
float strength()

Gets or sets the strength multiplier (0..1) for the animation

strength
float strength(float value)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta