From c05e188ef6a4b715848f9f0b401351a43c80168d Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Wed, 30 Jul 2025 23:33:22 +0300 Subject: Small Refactor --- include/assets.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'include/assets.h') 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 +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(); -- cgit v1.2.3