raylibstarter 0.1.0
game::core::SpriteAnimated::anim_state Struct Reference

This structure contains all data necessary for the description of the frame-by-frame animation. More...

Collaboration diagram for game::core::SpriteAnimated::anim_state:

Public Attributes

int row
 y-offset measured in rows (depending on the frame height, i.e. row 1 has a y-offset of 0px, row 2 has a y-offset of the height of an animation frame, etc.). More...
 
int steps
 Number of steps of the animation. More...
 
int speed
 Speed of the frame-by-frame animation. More...
 
float frame_width
 Width of a single animation frame. More...
 
float frame_height
 Height of a single animation frame. More...
 

Detailed Description

This structure contains all data necessary for the description of the frame-by-frame animation.

Definition at line 147 of file sprite_animated.h.

Member Data Documentation

◆ frame_height

float game::core::SpriteAnimated::anim_state::frame_height

Height of a single animation frame.

Definition at line 157 of file sprite_animated.h.

◆ frame_width

float game::core::SpriteAnimated::anim_state::frame_width

Width of a single animation frame.

Definition at line 155 of file sprite_animated.h.

◆ row

int game::core::SpriteAnimated::anim_state::row

y-offset measured in rows (depending on the frame height, i.e. row 1 has a y-offset of 0px, row 2 has a y-offset of the height of an animation frame, etc.).

Definition at line 149 of file sprite_animated.h.

◆ speed

int game::core::SpriteAnimated::anim_state::speed

Speed of the frame-by-frame animation.

Definition at line 153 of file sprite_animated.h.

◆ steps

int game::core::SpriteAnimated::anim_state::steps

Number of steps of the animation.

Definition at line 151 of file sprite_animated.h.


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