2 #include <assimp/cimport.h>
4 #include <stdio.h> // TODO remove
8 const AiScene* levelScene = NULL;
10 static const Block BLOCK_EMPTY = 0;
11 static const Block BLOCK_WALL01 = 0xFF0000FF; // red
13 static const AiScene* blockWall01 = NULL;
15 static TgaImage* levelImage = NULL;
18 blockWall01 = importScene("out/assets/wall01.3ds");
19 levelScene = blockWall01;
22 void setImage(TgaImage* image) {
26 const AiScene* importScene(const char* path) {
27 const AiScene* scene = aiImportFile(path, 0u);
29 fprintf(stderr, "Asset import failed at file %s\n", path); // TODO factor logging the heck outta here
32 // TODO aiReleaseImport(scene);