Display list for the maze structure

Objectives are not display-listed as they are removed when walked over.
This commit is contained in:
trotFunky 2019-11-04 14:30:28 +01:00
parent 648548693d
commit 254e94f912
2 changed files with 50 additions and 24 deletions

View file

@ -17,6 +17,7 @@ class Maze {
public:
Maze(const std::string& maze_map, unsigned int scaling_factor, const Texture& floor_texture,
const Texture& wall_texture, const Texture& outside_texture, Model3D& objective);
~Maze();
void draw();
@ -31,6 +32,8 @@ private:
const Texture& out;
Model3D& objective;
GLuint display_list_index = -1;
const double objective_altitude = 0;
const double wall_height = 2;
unsigned corner_pos;