summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/drawpath3.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/drawpath3.h')
-rw-r--r--Build/source/utils/asymptote/drawpath3.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Build/source/utils/asymptote/drawpath3.h b/Build/source/utils/asymptote/drawpath3.h
index 1bf5b670b8a..c6515057c9f 100644
--- a/Build/source/utils/asymptote/drawpath3.h
+++ b/Build/source/utils/asymptote/drawpath3.h
@@ -15,9 +15,6 @@ namespace camp {
class drawPath3 : public drawElement {
protected:
-#ifdef HAVE_GL
- static BezierCurve R;
-#endif
const path3 g;
triple center;
bool straight;
@@ -26,6 +23,9 @@ protected:
Interaction interaction;
triple Min,Max;
public:
+#ifdef HAVE_GL
+ static BezierCurve R;
+#endif
drawPath3(path3 g, triple center, const pen& p, Interaction interaction,
const string& key="") :
drawElement(key), g(g), center(center), straight(g.piecewisestraight()),
@@ -163,9 +163,6 @@ public:
// Draw a pixel.
class drawPixel : public drawElement {
-#ifdef HAVE_GL
- Pixel R;
-#endif
triple v;
pen p;
prc::RGBAColour color;
@@ -173,6 +170,9 @@ class drawPixel : public drawElement {
bool invisible;
triple Min,Max;
public:
+#ifdef HAVE_GL
+ static Pixel R;
+#endif
drawPixel(const triple& v, const pen& p, double width, const string& key="")
: drawElement(key), v(v), p(p), color(rgba(p)), width(width),
invisible(p.invisible()) {}