diff options
| author | Ritabrata Das <[email protected]> | 2026-09-09 21:07:21 +0530 |
|---|---|---|
| committer | Ritabrata Das <[email protected]> | 2026-09-09 21:07:21 +0530 |
| commit | ffd968a26826108ca9fb23d46ed5789260852eb7 (patch) | |
| tree | 3861d08dae1c28f547952dbcc16e04ae7b5286b5 /lib/assetManager.hpp | |
intial commit
Diffstat (limited to 'lib/assetManager.hpp')
| -rw-r--r-- | lib/assetManager.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/assetManager.hpp b/lib/assetManager.hpp new file mode 100644 index 0000000..7b15f5a --- /dev/null +++ b/lib/assetManager.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include <string> +#include <unordered_map> +#include <raylib.h> + +class assetManager +{ +private: + std::unordered_map<std::string, Texture2D> textures; +public: + assetManager(); + ~assetManager(); + + void init(const std::string& dirPath = "../assets"); + Texture2D load(const std::string& texName); + void cleanup(); +}; |
