Gama C Library
Gama C API Documentation
Loading...
Searching...
No Matches
gmSprite Struct Reference

Structure representing a sprite with animation capabilities. More...

#include <sprite.h>

Data Fields

double _backlog_t
gmSpriteAnim animation
size_t n_frames
size_t animation_frame
size_t _frame
gmImage image

Detailed Description

Structure representing a sprite with animation capabilities.

Field Documentation

◆ _backlog_t

double gmSprite::_backlog_t

Internal time accumulator for animation timing

◆ _frame

size_t gmSprite::_frame

Current actual frame to display

◆ animation

gmSpriteAnim gmSprite::animation

Animation sequence for the sprite

◆ animation_frame

size_t gmSprite::animation_frame

Current frame in the animation sequence

◆ image

gmImage gmSprite::image

The image containing the sprite sheet

◆ n_frames

size_t gmSprite::n_frames

Total number of frames in the sprite sheet


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