summaryrefslogtreecommitdiff
path: root/include/assets.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/assets.h')
-rw-r--r--include/assets.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/assets.h b/include/assets.h
index e2d76b7..61b198e 100644
--- a/include/assets.h
+++ b/include/assets.h
@@ -2,5 +2,18 @@
#include <raylib.h>
+typedef enum AssetType {
+ Texture_Asset
+} AssetType;
+
+typedef struct Asset {
+ AssetType type;
+ const char* name;
+ const char* filePath;
+
+ Texture2D texture;
+} Asset;
+
void LoadAssets();
-Texture2D GetTexture(const char* name);
+Asset* GetMatchingAssetWithType(const char* targetName, AssetType targetType);
+void UnloadAssets();