2 #include <assimp/cimport.h>
3 #include <stdio.h> // TODO remove
7 const AiScene* levelScene = NULL;
9 static const Block BLOCK_EMPTY = 0;
10 static const Block BLOCK_WALL01 = 0xFF0000FF; // red
12 static const AiScene* blockWall01 = NULL;
14 static TgaImage* levelImage = NULL;
17 blockWall01 = importScene("out/assets/wall01.3ds");
18 levelScene = blockWall01;
21 void setImage(TgaImage* image) {
25 const AiScene* importScene(const char* path) {
26 const AiScene* scene = aiImportFile(path, 0u);
28 fprintf(stderr, "Asset import failed at file %s\n", path); // TODO factor logging the heck outta here
31 // TODO aiReleaseImport(scene);