summaryrefslogtreecommitdiffstats
path: root/DisplayClass.h
diff options
context:
space:
mode:
Diffstat (limited to 'DisplayClass.h')
-rw-r--r--DisplayClass.h21
1 files changed, 5 insertions, 16 deletions
diff --git a/DisplayClass.h b/DisplayClass.h
index d1e56ba..0b24dc6 100644
--- a/DisplayClass.h
+++ b/DisplayClass.h
@@ -1,8 +1,7 @@
#ifndef _DISPLAYCLASS_H_
#define _DISPLAYCLASS_H_
-//#include "Trapezocube.h"
-#include "Cuboid.h"
+#include "Trapezocube.h"
class DisplayClass
{
@@ -12,25 +11,15 @@ class DisplayClass
void renderScene(unsigned long delta);
private:
- struct OpaqueRenderer {
+ struct Renderer {
void operator() (const Triangle &t) const {
- if(t.getColor().a() == 1.0)
- t.render();
+ t.render();
}
};
- struct TransparentRenderer {
- void operator() (const Triangle &t) const {
- if(t.getColor().a() != 1.0)
- t.render();
- }
- };
-
- static OpaqueRenderer opaqueRenderer;
- static TransparentRenderer transparentRenderer;
+ static Renderer renderer;
- //Trapezocube cubeing[8];
- Cuboid cube;
+ Trapezocube cubeing[8];
};
#endif /*_DISPLAYCLASS_H_*/