Multi-step keyframe animation with iteration, direction, fill mode. More...
#include <animation.hpp>
Public Types | |
| enum class | Direction { normal , reverse , alternate } |
| enum class | FillMode { none , forwards , backwards , both } |
Public Member Functions | |
| KeyframeAnimation ()=default | |
| void | set_keyframes (std::vector< Keyframe > kf) |
| void | set_duration (float seconds) |
| void | set_iterations (float count) |
| void | set_direction (Direction d) |
| void | set_fill_mode (FillMode f) |
| void | set_easing (EasingFunction e) |
| void | start () |
| void | stop () |
| void | pause () |
| void | resume () |
| bool | is_running () const |
| bool | is_finished () const |
| float | advance (float dt) |
| Advance by dt seconds, return current interpolated value. | |
| float | value () const |
Multi-step keyframe animation with iteration, direction, fill mode.
|
strong |
|
strong |
|
default |
|
inline |
Advance by dt seconds, return current interpolated value.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |