From e5268813dcbdc0d90a081b2223ebc21749038635 Mon Sep 17 00:00:00 2001 From: nathansmithsmith Date: Fri, 7 Jul 2023 23:10:23 -0600 Subject: Better world --- src/assets.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/assets.h (limited to 'src/assets.h') 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 -- cgit v1.2.3