blob: 214c61745691e884c172a5603acb1f7495860c8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
}
|