-#ifndef LEVEL_H
-#define LEVEL_H
+#ifndef LEVEL_H_
+#define LEVEL_H_
-#include <GL/gl.h>
+#include <stdint.h>
+
+#include "assimp_types.h"
#include "tga.h"
-typedef GLuint Block;
+typedef enum {
+ BLOCKTYPE_SPACE,
+ BLOCKTYPE_OBSTACLE_X,
+ BLOCKTYPE_OBSTACLE_Z,
+ BLOCKTYPE_OBSTACLE
+} BlockType;
+
+typedef struct {
+ const BlockType type;
+ const AiScene* sceneData;
+ GLuint* textureIds;
+} Block;
+
+typedef struct {
+ int width;
+ int height;
+ Block* blocks;
+} BlockGrid;
-const Block BLOCK_EMPTY = 0;
-const Block BLOCK_WALL01 = 1;
+BlockGrid levelGrid;
-Block get_block(GLushort x, GLushort y);
-void set_image(TGAimage* image);
+void initLevel();
+void buildLevelFromImage(TgaImage* image);
+const AiScene* importScene(const char* path);
#endif