diff options
author | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-02-15 23:10:43 +0000 |
---|---|---|
committer | nathansmith117 <thenathansmithsmith@gmail.com> | 2024-02-15 23:10:43 +0000 |
commit | e05dbe42fd8ffc6601887d19afcba545a6401733 (patch) | |
tree | eb170350052057385e82d9b273f041dae809f18c /src/assets.h | |
parent | 9211212e939561c92e9a29baf0b61408d0b58c7a (diff) | |
download | PenguinYippies-e05dbe42fd8ffc6601887d19afcba545a6401733.tar.gz PenguinYippies-e05dbe42fd8ffc6601887d19afcba545a6401733.tar.bz2 PenguinYippies-e05dbe42fd8ffc6601887d19afcba545a6401733.zip |
Untested asset loader thingy
Diffstat (limited to 'src/assets.h')
-rw-r--r-- | src/assets.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/assets.h b/src/assets.h index 9846f3b..eed002b 100644 --- a/src/assets.h +++ b/src/assets.h @@ -1,10 +1,23 @@ #include "gameCommon.h" +#include "animation.h" #define ASSETS_NAME_MAX 100 -#define IMAGE_ASSET_COUNT 4 +#define TEXTURE_ASSET_COUNT 4 #define ANIMATION_ASSET_COUNT 2 #ifndef ASSETS_H #define ASSETS_H +// Stores the names of all the assets used. +extern const char textureAssetsNames[TEXTURE_ASSET_COUNT][ASSETS_NAME_MAX]; +extern const char animationAssetsNames[ANIMATION_ASSET_COUNT][ASSETS_NAME_MAX]; + +typedef struct Assets { + Texture textures[TEXTURE_ASSET_COUNT]; + Animation animations[ANIMATION_ASSET_COUNT]; +} Assets; + +void initAssets(Assets* assets); +void closeAssets(Assets* assets); + #endif |