aboutsummaryrefslogtreecommitdiff
path: root/src/dummy_resource_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dummy_resource_manager.cpp')
-rw-r--r--src/dummy_resource_manager.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/dummy_resource_manager.cpp b/src/dummy_resource_manager.cpp
new file mode 100644
index 0000000..214c617
--- /dev/null
+++ b/src/dummy_resource_manager.cpp
@@ -0,0 +1,23 @@
+
+
+
+
+#include "api/Image_asset.h"
+#include "api/resource_manager.h"
+#include <iostream>
+#include <ostream>
+
+
+
+using namespace crepe;
+
+int main(){
+
+ // get instance of resource manager
+ api::ResourceManager& c_ResMan = api::ResourceManager::get_instance();
+
+ // make a resouce from the file path
+ api::Texture* img = c_ResMan.Load<api::Texture>("../asset/texture/img.png");
+
+ std::cout << img->getContent() << std::endl;
+}