diff options
Diffstat (limited to 'src/sdl/assets.h')
-rw-r--r-- | src/sdl/assets.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/sdl/assets.h b/src/sdl/assets.h new file mode 100644 index 0000000..1b78ef3 --- /dev/null +++ b/src/sdl/assets.h @@ -0,0 +1,20 @@ +#ifndef ASSETS_H +#define ASSETS_H + +#include <stddef.h> // size_t +#include <stdint.h> // uint8_t + +typedef enum { + ASSET_SPRITES_PNG, + ASSET_ROBOTO_TTF, + ASSET_LAST, +} asset_id_t; + +typedef struct { + const uint8_t * const buf; + size_t len; +} asset_t; + +const asset_t *asset_get(const asset_id_t); + +#endif /* ASSETS_H */ |