aboutsummaryrefslogtreecommitdiff
path: root/src/sdl/assets.h
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-01-14 21:17:47 -0500
committerPaul Duncan <pabs@pablotron.org>2019-01-14 21:17:47 -0500
commit5da2b11fcf69d12b93ea73938ababdb98a749e40 (patch)
treeff2019db71f0247f164379422dee60c129425225 /src/sdl/assets.h
parentee2d66bbe27ad6647acd5956699a8b79fb2fbec6 (diff)
downloadsok-5da2b11fcf69d12b93ea73938ababdb98a749e40.tar.bz2
sok-5da2b11fcf69d12b93ea73938ababdb98a749e40.zip
bake assets into build
Diffstat (limited to 'src/sdl/assets.h')
-rw-r--r--src/sdl/assets.h20
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 */