Loading...
Searching...
No Matches
ml::AnimationManager Class Reference

#include <Malena/Animation/AnimationManager.h>

Public Types

using Step = std::function<bool(float)>
 A per-frame step. Receives dt (seconds); returns true when finished.

Static Public Member Functions

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.

Detailed Description

Definition at line 24 of file AnimationManager.h.

Member Typedef Documentation

◆ Step

using ml::AnimationManager::Step = std::function<bool(float)>

A per-frame step. Receives dt (seconds); returns true when finished.

Definition at line 28 of file AnimationManager.h.

Member Function Documentation

◆ 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: