diff options
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 |