diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-12-30 12:39:12 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2009-12-30 12:39:12 (GMT) |
commit | d03268b95bdb4f000e082f975e6eeaf2c442eea4 (patch) | |
tree | 5890f741ba784d0ddf55e5c97387eb914c36eac2 /openscad.h | |
parent | 0d198de8ff3986b678e824824d0f3dd0933255d0 (diff) |
Clifford Wolf:
CSG previews of 2d designes is working fine now
git-svn-id: http://svn.clifford.at/openscad/trunk@189 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'openscad.h')
-rw-r--r-- | openscad.h | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -552,10 +552,20 @@ public: COLORMODE_BACKGROUND }; + enum csgmode_e { + CSGMODE_NONE, + CSGMODE_NORMAL = 1, + CSGMODE_DIFFERENCE = 2, + CSGMODE_BACKGROUND = 11, + CSGMODE_BACKGROUND_DIFFERENCE = 12, + CSGMODE_HIGHLIGHT = 21, + CSGMODE_HIGHLIGHT_DIFFERENCE = 22 + }; + static QCache<QString,PolySetPtr> ps_cache; - void render_surface(colormode_e colormode, GLint *shaderinfo = NULL) const; - void render_edges(colormode_e colormode) const; + void render_surface(colormode_e colormode, csgmode_e csgmode, GLint *shaderinfo = NULL) const; + void render_edges(colormode_e colormode, csgmode_e csgmode) const; #ifdef ENABLE_CGAL CGAL_Nef_polyhedron render_cgal_nef_polyhedron() const; |