#include <animation_channels.h>
Public Member Functions | |
| RealtimeAnimationTracks (SceneLayerStack &layers) | |
| uint | addLoop (uint layerId, uint32 frameMillis, uint16 frameCount, bool active=true) |
| uint | addRange (uint layerId, uint32 frameMillis, byte firstFrame, byte lastFrame, bool active=true) |
| uint | addFrameMap (uint layerId, uint32 frameMillis, bool active=true) |
| uint | addPingPong (uint layerId, uint32 frameMillis, byte firstFrame, byte lastFrame, bool active=true) |
| uint | addStableRandom (ResourceSpriteLayer &layer, uint32 frameMillis, byte firstFrame, byte lastFrame, bool avoidRepeats, bool active=true) |
| uint | addRandom (uint layerId, uint32 frameMillis, byte firstFrame, byte lastFrame, bool avoidRepeats, bool active=true) |
| bool | hasTrack (uint id) const |
| void | setActive (uint id, bool active) |
| bool | isActive (uint id) const |
| void | reset (uint id) |
| void | resetToFrame (uint id, byte frame) |
| void | setRange (uint id, byte firstFrame, byte lastFrame) |
| void | resetTimer (uint id) |
| void | resetTimer (uint id, uint32 frameMillis) |
| void | prime (uint id) |
| bool | advance (uint32 delta, Common::RandomSource &random) |
| bool | advance (uint id, uint32 delta, Common::RandomSource &random) |
Static Public Attributes | |
| static constexpr uint | kInvalidTrack = 0xffffffff |
Advances registered resource layers at a fixed cadence.
Tracks only own timing and frame selection. Scenes still own visibility, composition, and animations with frame-specific side effects. Stack layers are bound by ID and may survive stack storage changes. addStableRandom() is reserved for fixed-address layers owned outside a stack. Layers may be reconfigured while their tracks are inactive; their registered range must be valid before activation. Inactive tracks do not accumulate time; reset() restores the first frame.