2022-11-03 21:29:08 -06:00
|
|
|
#ifndef ARC_SDL_SPRITE_H_
|
|
|
|
|
#define ARC_SDL_SPRITE_H_
|
|
|
|
|
|
2024-02-08 16:53:31 -07:00
|
|
|
#ifdef ARC_SDL2_GRAPHICS
|
2022-11-29 14:50:20 -07:00
|
|
|
#include "arc/graphics/sprite.h"
|
2023-03-11 01:21:36 -07:00
|
|
|
#include <SDL.h>
|
2022-11-03 21:29:08 -06:00
|
|
|
|
|
|
|
|
struct ARC_Sprite {
|
|
|
|
|
ARC_Spritesheet *spritesheet;
|
2023-01-02 19:59:26 -07:00
|
|
|
ARC_Array *frames;
|
2022-11-29 14:50:20 -07:00
|
|
|
uint32_t *frameIndex;
|
2023-09-20 02:24:15 -06:00
|
|
|
//TODO: temp
|
|
|
|
|
uint8_t opacity;
|
2022-11-03 21:29:08 -06:00
|
|
|
};
|
|
|
|
|
|
2024-02-08 16:53:31 -07:00
|
|
|
#endif // !ARC_SDL2_GRAPHICS
|
2022-11-03 21:29:08 -06:00
|
|
|
|
2023-03-10 17:34:22 -07:00
|
|
|
#endif // !ARC_SDL_SPRITE_H_
|