diff options
author | BoredGuy <osome3717@gmail.com> | 2025-07-30 23:33:22 +0300 |
---|---|---|
committer | BoredGuy <osome3717@gmail.com> | 2025-07-30 23:33:22 +0300 |
commit | c05e188ef6a4b715848f9f0b401351a43c80168d (patch) | |
tree | dc1dd17a8623b26bac9bc6b959084babe556ee32 /include/assets.h | |
parent | 815aec62f8ae3a403e913559d5fe6138c8825007 (diff) |
Small Refactor
Diffstat (limited to 'include/assets.h')
-rw-r--r-- | include/assets.h | 15 |
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(); |