Gama C Library
Gama C API Documentation
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.

A sprite consists of an image (sprite sheet) and defines how to play an animation sequence from that sheet.

Field Documentation

◆ _backlog_t

double gmSprite::_backlog_t

Internal time accumulator for animation timing.

◆ _frame

size_t gmSprite::_frame

Current actual frame index from the sprite sheet to display.

◆ animation

gmSpriteAnim gmSprite::animation

The animation sequence for the sprite.

◆ animation_frame

size_t gmSprite::animation_frame

Current frame index in the animation.anim 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: