Dumb-ways-to-memorize
2D game
Data Fields
sprite_t Struct Reference

#include <graphics.h>

+ Collaboration diagram for sprite_t:

Data Fields

Frame mAnimations [MAX_ANIMATIONS]
 
SDL_Texture * mTexture
 
vec2_t mSize
 
int mFrames
 
int refCount
 
char * name
 

Detailed Description

The structure of our sprites.

Author
Anthony Rios
Date
3/30/2016

Definition at line 29 of file graphics.h.

Field Documentation

Frame sprite_t::mAnimations[MAX_ANIMATIONS]

The animation positions of the given sprite

Definition at line 31 of file graphics.h.

int sprite_t::mFrames

The number of frames in this sprite

Definition at line 34 of file graphics.h.

vec2_t sprite_t::mSize

The size of the sprite width + height

Definition at line 33 of file graphics.h.

SDL_Texture* sprite_t::mTexture

The texture of the sprite

Definition at line 32 of file graphics.h.

char* sprite_t::name

The name of the sprite's location

Definition at line 36 of file graphics.h.

int sprite_t::refCount

Number of references, in the engine

Definition at line 35 of file graphics.h.


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