From 1b6ecc22e77b7aa1fee16420b041c1dea1925052 Mon Sep 17 00:00:00 2001 From: riton Date: Sat, 29 Mar 2025 21:37:46 +0300 Subject: init repo --- textures.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 textures.h (limited to 'textures.h') diff --git a/textures.h b/textures.h new file mode 100644 index 0000000..01b8873 --- /dev/null +++ b/textures.h @@ -0,0 +1,23 @@ +#ifndef ASSET_LOADER_H +#define ASSET_LOADER_H + +#include +#include + +enum texture_enum { + T_PLAYER, + T_GRASS, + T_DIRT, + T_TOWER, + T_SKELETON_MOVE, + T_COUNT +}; + +extern Texture2D textures[T_COUNT]; + +#define ASSET_ROOT "asset/" +Texture2D load_texture(const char *path); +void load_textures(); +void unload_textures(); + +#endif -- cgit v1.2.3