SANDAL2
A SDL2 Wrapper in C
Public Attributes | List of all members
Sprite Struct Reference

informations about a step of an animation More...

#include <Sprite.h>

Collaboration diagram for Sprite:
Collaboration graph
[legend]

Public Attributes

struct Spritenext
 
struct Spriteprev
 
int coords [4]
 
unsigned lifespan
 
int code
 

Detailed Description

informations about a step of an animation

Member Data Documentation

◆ code

int Sprite::code

identifier of the Sprite

◆ coords

int Sprite::coords[4]

[0] and [1] for the coordinates of the top left corner and [2] and [3] respectively for the width and the height

◆ lifespan

unsigned Sprite::lifespan

number of time minus one the Sprite should be displaied before going to the next

◆ next

struct Sprite* Sprite::next

next step of the animation

◆ prev

struct Sprite* Sprite::prev

previous step of the animation


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