Loading...
Searching...
No Matches
sprite.h
Go to the documentation of this file.
#ifndef ARC_SDL_SPRITE_H_
#define ARC_SDL_SPRITE_H_
#include "arc/graphics/sprite.h"
#include <SDL.h>
struct ARC_Sprite {
ARC_Spritesheet *spritesheet;
ARC_Array *frames;
uint32_t *frameIndex;
//TODO: temp
uint8_t opacity;
};
#endif // !ARC_SDL_SPRITE_H_
sprite.h
ARC_Array
a type that holds an array of data and its size
Definition array.h:13
ARC_Sprite
Definition sprite.h:7
ARC_Sprite::spritesheet
ARC_Spritesheet * spritesheet
Definition sprite.h:8
ARC_Sprite::opacity
uint8_t opacity
Definition sprite.h:12
ARC_Sprite::frameIndex
uint32_t * frameIndex
Definition sprite.h:10
ARC_Sprite::frames
ARC_Array * frames
Definition sprite.h:9
ARC_Spritesheet
Definition spritesheet.h:7