summaryrefslogtreecommitdiff
path: root/openscad.h
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-23 12:05:05 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2009-07-23 12:05:05 (GMT)
commit7516cd5e8150e7f6850179ace35622b186237401 (patch)
treed10012d68d0dcbefe3edeaf3272e42f49a21f71c /openscad.h
parentf78917d4dee78b720d41bbd59eee82ceaca95454 (diff)
Clifford Wolf:
Added '%' for background stuff git-svn-id: http://svn.clifford.at/openscad/trunk@69 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'openscad.h')
-rw-r--r--openscad.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/openscad.h b/openscad.h
index 05db203..9257a76 100644
--- a/openscad.h
+++ b/openscad.h
@@ -334,9 +334,10 @@ public:
bool tag_root;
bool tag_highlight;
+ bool tag_background;
const Context *ctx;
- ModuleInstanciation() : tag_root(false), tag_highlight(false), ctx(NULL) { }
+ ModuleInstanciation() : tag_root(false), tag_highlight(false), tag_background(false), ctx(NULL) { }
~ModuleInstanciation();
QString dump(QString indent) const;
@@ -481,7 +482,8 @@ public:
COLOR_NONE,
COLOR_MATERIAL,
COLOR_CUTOUT,
- COLOR_HIGHLIGHT
+ COLOR_HIGHLIGHT,
+ COLOR_BACKGROUND
};
void render_surface(colormode_e colormode, GLint *shaderinfo = NULL) const;
@@ -555,7 +557,7 @@ public:
virtual QString cgal_nef_cache_id() const;
virtual CGAL_Nef_polyhedron render_cgal_nef_polyhedron() const;
#endif
- virtual CSGTerm *render_csg_term(double m[16], QVector<CSGTerm*> *highlights) const;
+ virtual CSGTerm *render_csg_term(double m[16], QVector<CSGTerm*> *highlights, QVector<CSGTerm*> *background) const;
virtual QString dump(QString indent) const;
};
@@ -571,7 +573,7 @@ public:
#ifdef ENABLE_CGAL
virtual CGAL_Nef_polyhedron render_cgal_nef_polyhedron() const;
#endif
- virtual CSGTerm *render_csg_term(double m[16], QVector<CSGTerm*> *highlights) const;
+ virtual CSGTerm *render_csg_term(double m[16], QVector<CSGTerm*> *highlights, QVector<CSGTerm*> *background) const;
};
extern int progress_report_count;
@@ -646,6 +648,8 @@ public:
QVector<CSGTerm*> highlight_terms;
CSGChain *highlights_chain;
+ QVector<CSGTerm*> background_terms;
+ CSGChain *background_chain;
AbstractNode *root_node;
bool enableOpenCSG;
contact: Jan Huwald // Impressum