|
Gama C Library
Gama C API Documentation
|
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 |
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.
| double gmSprite::_backlog_t |
Internal time accumulator for animation timing.
| size_t gmSprite::_frame |
Current actual frame index from the sprite sheet to display.
| gmSpriteAnim gmSprite::animation |
The animation sequence for the sprite.
| size_t gmSprite::animation_frame |
Current frame index in the animation.anim sequence.
| gmImage gmSprite::image |
The image containing the sprite sheet.
| size_t gmSprite::n_frames |
Total number of frames in the sprite sheet.