diff options
author | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-07-07 23:10:23 -0600 |
---|---|---|
committer | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-07-07 23:10:23 -0600 |
commit | e5268813dcbdc0d90a081b2223ebc21749038635 (patch) | |
tree | 7c917996749e4123fb1fe49ddd1ed3b8f7e92334 /src/assets.h | |
parent | a90e1987de75cfecc2693952625af8cce507ae95 (diff) |
Better world
Diffstat (limited to 'src/assets.h')
-rw-r--r-- | src/assets.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/assets.h b/src/assets.h new file mode 100644 index 0000000..f28ddb8 --- /dev/null +++ b/src/assets.h @@ -0,0 +1,37 @@ +#include "gameCommon.h" + +#ifndef ASSETS_H +#define ASSETS_H + +#define ASSET_PATH_MAX 255 + +#define TEXTURE_ASSET_COUNT 3 +#define MODEL_ASSET_COUNT 1 + +// Paths to assets. +extern const char textureAssetPaths[TEXTURE_ASSET_COUNT][ASSET_PATH_MAX]; +extern const char modelAssetPaths[MODEL_ASSET_COUNT][ASSET_PATH_MAX]; + +typedef int32_t AssetId; + +// Texture asset ids. +enum { + ICON_ASSET, + ICON128_ASSET, + ICON64_ASSET +}; + +// Model asset ids. +enum { + ANTIFA_SHIP_ASSET +}; + +typedef struct Assets { + Texture2D textures[TEXTURE_ASSET_COUNT]; + Model models[MODEL_ASSET_COUNT]; +} Assets; + +void LoadAssets(Assets * assets); +void unloadAssets(Assets * assets); + +#endif |