#include <Malena/Animation/AnimationManager.h>
|
| using | Step = std::function<bool(float)> |
| | A per-frame step. Receives dt (seconds); returns true when finished.
|
|
| static std::size_t | activeCount () |
| | Total number of live animations (test/introspection helper).
|
| static void | add (const void *owner, Step step) |
| | Register an animation step owned by owner (used for cancellation).
|
| static void | advance (float dt) |
| | Advance every active animation by dt seconds (called once per frame).
|
| static void | cancel (const void *owner) |
| | Remove every animation belonging to owner (called on owner destruction).
|
| static bool | hasActive (const void *owner) |
| | True if owner has any live animation.
|
Definition at line 24 of file AnimationManager.h.
◆ Step
A per-frame step. Receives dt (seconds); returns true when finished.
Definition at line 28 of file AnimationManager.h.
◆ activeCount()
| std::size_t ml::AnimationManager::activeCount |
( |
| ) |
|
|
static |
Total number of live animations (test/introspection helper).
◆ add()
| void ml::AnimationManager::add |
( |
const void * | owner, |
|
|
Step | step ) |
|
static |
Register an animation step owned by owner (used for cancellation).
◆ advance()
| void ml::AnimationManager::advance |
( |
float | dt | ) |
|
|
static |
Advance every active animation by dt seconds (called once per frame).
◆ cancel()
| void ml::AnimationManager::cancel |
( |
const void * | owner | ) |
|
|
static |
Remove every animation belonging to owner (called on owner destruction).
◆ hasActive()
| bool ml::AnimationManager::hasActive |
( |
const void * | owner | ) |
|
|
static |
True if owner has any live animation.
The documentation for this class was generated from the following file: