Gama C Library
Gama C API Documentation
gmSpriteAnim Struct Reference

Structure representing a sprite animation sequence. More...

#include <sprite.h>

Data Fields

double interval
int8_t anim [GAMA_MAX_SPRITE_ANIM_LENGTH]
size_t length

Detailed Description

Structure representing a sprite animation sequence.

Field Documentation

◆ anim

int8_t gmSpriteAnim::anim[GAMA_MAX_SPRITE_ANIM_LENGTH]

Array of frame indices in the animation sequence. These are indices into the sprite sheet's total frames.

◆ interval

double gmSpriteAnim::interval

Time interval in seconds between animation frames.

◆ length

size_t gmSpriteAnim::length

Number of frames in the animation sequence.


The documentation for this struct was generated from the following file: