diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2011-08-03 21:37:51 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2011-08-03 21:37:51 (GMT) |
commit | f78d4f74b2606f3cccff0f241b608cb021a30b9b (patch) | |
tree | 6d61969163630b4ac88011eddb1894c65d768c78 /src/opencsgrenderer.h | |
parent | 5aec712746eeac2e3bdf2501a7473bcac9777690 (diff) | |
parent | a35c801eec98803bf21d0d6c8d2748f0d9ccd507 (diff) |
Merge remote branch 'upstream/master'
Diffstat (limited to 'src/opencsgrenderer.h')
-rw-r--r-- | src/opencsgrenderer.h | 24 |
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 |