A playback head — RAM, 8 bytes, array-friendly. More...
#include <anim.h>
Public Attributes | |
| const AnimClip * | clip |
| u8 | flags |
| u8 | frame |
| u8 | reserved |
| u8 | ticks |
A playback head — RAM, 8 bytes, array-friendly.
Zero-initialised (or ANIM_PLAYER_INIT) = stopped. One per animated entity; e.g. static AnimPlayer obj_anim[OB_MAX]; next to the object engine's slots.
| const AnimClip* AnimPlayer::clip |
current clip, NULL = stopped
| u8 AnimPlayer::flags |
ANIM_F_*
| u8 AnimPlayer::frame |
cursor into clip->frames
| u8 AnimPlayer::reserved |
pad to even size
| u8 AnimPlayer::ticks |
countdown; the frame advances when it hits 0