OpenSNES
Modern Open-Source SNES Development SDK
Loading...
Searching...
No Matches
AnimPlayer Struct Reference

A playback head — RAM, 8 bytes, array-friendly. More...

#include <anim.h>

Public Attributes

const AnimClipclip
u8 flags
u8 frame
u8 reserved
u8 ticks

Detailed Description

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.

Member Data Documentation

◆ clip

const AnimClip* AnimPlayer::clip

current clip, NULL = stopped

◆ flags

u8 AnimPlayer::flags

ANIM_F_*

◆ frame

u8 AnimPlayer::frame

cursor into clip->frames

◆ reserved

u8 AnimPlayer::reserved

pad to even size

◆ ticks

u8 AnimPlayer::ticks

countdown; the frame advances when it hits 0


The documentation for this struct was generated from the following file:
  • /home/runner/work/opensnes/opensnes/lib/include/snes/anim.h