summaryrefslogtreecommitdiff
path: root/src/throwntogetherrenderer.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-07-30 19:29:40 (GMT)
committerMarius Kintel <marius@kintel.net>2011-07-30 19:29:40 (GMT)
commit887f7eb99ff7dfaa2f088d7e210b09b10892f19a (patch)
tree9d996d97502701630abb25e789f9c4a6b036cdd6 /src/throwntogetherrenderer.h
parentbebf3c0ac08338112bb022087a62425b4b7d9d0d (diff)
Refactored GL rendering inspired by Giles' work on RapCad. The ultimate goal is to become independent of Qt
Diffstat (limited to 'src/throwntogetherrenderer.h')
-rw-r--r--src/throwntogetherrenderer.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/throwntogetherrenderer.h b/src/throwntogetherrenderer.h
new file mode 100644
index 0000000..09d13f3
--- /dev/null
+++ b/src/throwntogetherrenderer.h
@@ -0,0 +1,21 @@
+#ifndef THROWNTOGETHERRENDERER_H_
+#define THROWNTOGETHERRENDERER_H_
+
+#include "renderer.h"
+
+class ThrownTogetherRenderer : public Renderer
+{
+public:
+ ThrownTogetherRenderer(class CSGChain *root_chain,
+ CSGChain *highlights_chain, CSGChain *background_chain);
+ void draw(bool showfaces, bool showedges) const;
+private:
+ void renderCSGChain(CSGChain *chain, bool highlight, bool background, bool showedges,
+ bool fberror) const;
+
+ CSGChain *root_chain;
+ CSGChain *highlights_chain;
+ CSGChain *background_chain;
+};
+
+#endif
contact: Jan Huwald // Impressum