dungeon_crawler

view prototype/src/tile.h @ 4:158de53b4e18

tile work
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 11 Aug 2012 05:44:52 +0300
parents 31e53fd79c2d
children 252a00508411
line source
1 #ifndef TILE_H_
2 #define TILE_H_
4 #include <vector>
5 #include <assimp/aiScene.h>
6 #include "mesh.h"
7 #include "light.h"
9 enum {
10 TILE_NORTH = 1,
11 TILE_SOUTH = 2,
12 TILE_EAST = 4,
13 TILE_WEST = 8,
14 TILE_ALL = 0xf
15 };
17 class Tile {
18 private:
19 std::vector<Mesh*> meshes;
20 std::vector<unsigned int> mesh_side;
21 std::vector<Light*> lights;
23 int load_lights(const aiScene *scn);
24 int load_meshes(const aiScene *scn);
26 public:
27 bool load(const char *fname);
29 void draw(unsigned int drawmask) const;
30 };
32 #endif // TILE_H_