summaryrefslogtreecommitdiff
path: root/lib/assetManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/assetManager.hpp')
-rw-r--r--lib/assetManager.hpp18
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();
+};