aboutsummaryrefslogtreecommitdiff
path: root/src/dummy_resource_manager.cpp
blob: bb0b7afc31d2073d23458e6bd5f0853bde5b54e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#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);

}