diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-10-23 13:49:20 +0200 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-10-23 13:49:20 +0200 |
commit | eaa05e7a981b0f581f5393882e4753d9294a3dba (patch) | |
tree | 4f55cbacf8a70229ec523a45848fe89915d707d5 /src/dummy_resource_manager.cpp | |
parent | f1857fc2d4ddec71b3f0395903f8446cf96b8d0c (diff) |
rendering and asset_manager poc
:
Diffstat (limited to 'src/dummy_resource_manager.cpp')
-rw-r--r-- | src/dummy_resource_manager.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/dummy_resource_manager.cpp b/src/dummy_resource_manager.cpp deleted file mode 100644 index bb0b7af..0000000 --- a/src/dummy_resource_manager.cpp +++ /dev/null @@ -1,38 +0,0 @@ - - - - -#include "api/game.h" -#include "api/resource_manager.h" -#include "api/spritesheet.h" -#include "facade/Texture.h" -#include "util/log.h" -#include <vector> - -using namespace crepe; - -int main(){ - - - dbg_trace(); - - // get instance of resource manager - //api::ResourceManager& c_ResMan = api::ResourceManager::get_instance(); - - - game engine; - - api::ResourceManager& c_ResMan = api::ResourceManager::get_instance(); - - auto test = c_ResMan.Load<Texture>("../asset/texture/img.png"); - - auto img = Texture("../asset/texture/img.png"); - - auto SS = api::Spritesheet("../asset/spritesheet/spritesheet_test.png", 1 , 4); - - std::vector<Texture*> t = {test}; - std::vector<api::Spritesheet*> s = {&SS}; - - engine.render(t, s); - -} |