summaryrefslogtreecommitdiffstats
path: root/DisplayClass.h
diff options
context:
space:
mode:
Diffstat (limited to 'DisplayClass.h')
-rw-r--r--DisplayClass.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/DisplayClass.h b/DisplayClass.h
index 51f8636..04ff651 100644
--- a/DisplayClass.h
+++ b/DisplayClass.h
@@ -1,7 +1,6 @@
#ifndef _DISPLAYCLASS_H_
#define _DISPLAYCLASS_H_
-#include "Cuboid.h"
#include "Cubehole.h"
class DisplayClass
@@ -12,7 +11,15 @@ class DisplayClass
void renderScene(unsigned long delta);
private:
- Cuboid cubes[5][5][5];
+ struct Renderer {
+ void operator() (const Triangle &t) const {
+ t.render();
+ }
+ };
+
+ static Renderer renderer;
+
+ Cubehole cubehole;
};
#endif /*_DISPLAYCLASS_H_*/