blob: 3ec767b0c92e19cbb5813b313dd1784259fafeff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef _DISPLAYCLASS_H_
#define _DISPLAYCLASS_H_
//#include "Cubehole.h"
//#include "Temparray.h"
#include "BSPTree.h"
#include "gl.h"
#include "House.h"
class DisplayClass
{
public:
DisplayClass(int x, int y, int z);
virtual ~DisplayClass();
void renderScene(unsigned long delta);
private:
struct Renderer {
void operator() (const Triangle &t) const {
t.render();
}
};
static Renderer render;
float angle;
int x, y, z;
//Cubehole cubehole0, cubehole1, cubehole2, cubehole3, cubehole4, cubehole5;
std::list<Triangle> triangles;
//BSPTree *tree;
};
#endif /*_DISPLAYCLASS_H_*/
|