From 5da2b11fcf69d12b93ea73938ababdb98a749e40 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 14 Jan 2019 21:17:47 -0500 Subject: bake assets into build --- src/sdl/assets.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/sdl/assets.h (limited to 'src/sdl/assets.h') 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 // size_t +#include // 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 */ -- cgit v1.2.3