summaryrefslogtreecommitdiff
path: root/src/opencsgrenderer.h
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-07-30 23:58:51 (GMT)
committerMarius Kintel <marius@kintel.net>2011-07-30 23:58:51 (GMT)
commit6882228058d313bb7b98fddd90239bdb1a3e25ef (patch)
tree9e3f0077a319939df7496fc6b18350c44cc4b0ec /src/opencsgrenderer.h
parentdd9dfcb4ece4dcd1ae7f3374ef03a4babdb91dd8 (diff)
parentc79ad5010e4ae8a612de5423cd52a518ed6b4d65 (diff)
Merge branch 'master' into visitor
Conflicts: src/GLView.h src/glview.cc src/mainwin.cc src/render-opencsg.cc
Diffstat (limited to 'src/opencsgrenderer.h')
-rw-r--r--src/opencsgrenderer.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/opencsgrenderer.h b/src/opencsgrenderer.h
new file mode 100644
index 0000000..95ffc8e
--- /dev/null
+++ b/src/opencsgrenderer.h
@@ -0,0 +1,24 @@
+#ifndef OPENCSGRENDERER_H_
+#define OPENCSGRENDERER_H_
+
+#include "renderer.h"
+#include <GL/glew.h> // this must be included before the GL headers
+#include <qgl.h>
+
+class OpenCSGRenderer : public Renderer
+{
+public:
+ OpenCSGRenderer(class CSGChain *root_chain, CSGChain *highlights_chain,
+ CSGChain *background_chain, GLint *shaderinfo);
+ void draw(bool showfaces, bool showedges) const;
+private:
+ void renderCSGChain(class CSGChain *chain, GLint *shaderinfo,
+ bool highlight, bool background) const;
+
+ CSGChain *root_chain;
+ CSGChain *highlights_chain;
+ CSGChain *background_chain;
+ GLint *shaderinfo;
+};
+
+#endif
contact: Jan Huwald // Impressum