summaryrefslogtreecommitdiffstats
path: root/DisplayClass.h
diff options
context:
space:
mode:
authorConstantin Riß <constantin.riss@dre.de>2010-02-10 22:30:18 +0100
committerConstantin Riß <constantin.riss@dre.de>2010-02-10 22:30:18 +0100
commit22b2912bbdd637c1a206b30f7d02c8e560ff9850 (patch)
tree33889a87dc0bce5e5380d0d88b95c9fb623b7685 /DisplayClass.h
parent897a54945c4a9112ee5c97e2eb8937adc57f17fe (diff)
downloadc3d-22b2912bbdd637c1a206b30f7d02c8e560ff9850.tar
c3d-22b2912bbdd637c1a206b30f7d02c8e560ff9850.zip
veränderungen
Diffstat (limited to 'DisplayClass.h')
-rw-r--r--DisplayClass.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/DisplayClass.h b/DisplayClass.h
index 5b646ed..ee245af 100644
--- a/DisplayClass.h
+++ b/DisplayClass.h
@@ -1,12 +1,10 @@
#ifndef _DISPLAYCLASS_H_
#define _DISPLAYCLASS_H_
-//#include "Cubehole.h"
-//#include "Temparray.h"
#include "BSPTree.h"
#include "gl.h"
#include "House.h"
-#include <bitset>
+#include "Keys.h"
class DisplayClass
{
@@ -14,7 +12,7 @@ class DisplayClass
DisplayClass(int x, int y, int z);
virtual ~DisplayClass();
- void renderScene(unsigned long delta, std::bitset<256>& keys);
+ void renderScene(unsigned long delta, const Keyset &keys);
private:
struct Renderer {
@@ -25,11 +23,12 @@ class DisplayClass
static Renderer render;
- float angle;
+ float angleY, angleX;
+ float distance, distanceh;
int x, y, z;
//Cubehole cubehole0, cubehole1, cubehole2, cubehole3, cubehole4, cubehole5;
std::list<Triangle> triangles;
- void keyhandler(std::bitset<256>& keys);
+ void handleKeys(unsigned long delta, const Keyset &keys);
//BSPTree *tree;
};
#endif /*_DISPLAYCLASS_H_*/