aboutsummaryrefslogtreecommitdiffstats
path: root/src/assets.h
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-07-04 13:00:08 +0000
committernathan <nathansmith@disroot.org>2025-07-04 13:00:08 +0000
commit2b2b69ee31f00aa46ab6baa967e12437ce7334d1 (patch)
tree1ba7fd19c30bb33ef20f55afc84ccfff30460969 /src/assets.h
parentde3a92fb2bde8cbec688f788c53f7ba52d6a723a (diff)
downloadFindThings-2b2b69ee31f00aa46ab6baa967e12437ce7334d1.tar.gz
FindThings-2b2b69ee31f00aa46ab6baa967e12437ce7334d1.tar.bz2
FindThings-2b2b69ee31f00aa46ab6baa967e12437ce7334d1.zip
Heightmap, player, and more concepts
Diffstat (limited to 'src/assets.h')
-rw-r--r--src/assets.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/assets.h b/src/assets.h
new file mode 100644
index 0000000..c5fb7ac
--- /dev/null
+++ b/src/assets.h
@@ -0,0 +1,32 @@
+#include "utils.h"
+
+#ifndef ASSETS_H
+#define ASSETS_H
+
+#define IMAGE_ASSET_COUNT 1
+#define TEXTURE_ASSET_COUNT 1
+
+extern const char imageAssetPaths[IMAGE_ASSET_COUNT][FT_NAMEMAX];
+extern const char textureAssetPaths[TEXTURE_ASSET_COUNT][FT_NAMEMAX];
+
+typedef int8_t Assetid;
+
+// Image asset ids.
+enum {
+ HEIGHT_MAP_IMAGE
+};
+
+// Texture asset ids.
+enum {
+ HEIGHT_MAP_TEXTURE
+};
+
+typedef struct Assets {
+ Image images[IMAGE_ASSET_COUNT];
+ Texture textures[TEXTURE_ASSET_COUNT];
+} Assets;
+
+void initAssets(Assets* assets);
+void closeAssets(Assets* assets);
+
+#endif