]> git.lizzy.rs Git - shadowclad.git/blob - level.h
Only render axis indicator on the positive side of that axis
[shadowclad.git] / level.h
1 #ifndef LEVEL_H
2 #define LEVEL_H
3
4 #include <GL/gl.h>
5
6 #include "lib/lib3ds.h"
7 #include "tga.h"
8
9 typedef struct {
10         GLuint type;
11         Lib3dsMesh* mesh;
12         Lib3dsMaterial** materials;
13         int material_count;
14         unsigned int obstacle;
15 } Block;
16
17 const GLuint BLOCK_EMPTY;
18 const GLuint BLOCK_WALL01;
19
20 void init_blocks();
21 Block* get_block_at(GLushort x, GLushort y);
22 void set_level_image(TGAimage* image);
23
24 #endif