summaryrefslogtreecommitdiff
path: root/graphics/asymptote/drawpath3.cc
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-10-21 03:00:45 +0000
committerNorbert Preining <norbert@preining.info>2019-10-21 03:00:45 +0000
commit7da4243862494d1fc7478956362f4da6d80f4f7e (patch)
tree30922972d98c2056ecbed0a1c43b3b3a3758bf58 /graphics/asymptote/drawpath3.cc
parent8fa38617045e3aa88b163fdc2fd683d72559b6d5 (diff)
CTAN sync 201910210300
Diffstat (limited to 'graphics/asymptote/drawpath3.cc')
-rw-r--r--graphics/asymptote/drawpath3.cc16
1 files changed, 10 insertions, 6 deletions
diff --git a/graphics/asymptote/drawpath3.cc b/graphics/asymptote/drawpath3.cc
index 0c6d71af9c..f712d9b703 100644
--- a/graphics/asymptote/drawpath3.cc
+++ b/graphics/asymptote/drawpath3.cc
@@ -91,6 +91,11 @@ void drawPath3::render(double size2, const triple& b, const triple& B,
} else
offscreen=bbox2(Min,Max).offscreen();
+ RGBAColour Black(0.0,0.0,0.0,color.A);
+ setcolors(false,Black,color,Black,1.0,0.0,0.04);
+
+ setMaterial(material1Data,drawMaterial1);
+
if(offscreen) { // Fully offscreen
R.Onscreen=false;
R.data.clear();
@@ -114,9 +119,6 @@ void drawPath3::render(double size2, const triple& b, const triple& B,
const pair size3(s*(B.getx()-b.getx()),s*(B.gety()-b.gety()));
- RGBAColour Black(0.0,0.0,0.0,color.A);
- setcolors(false,Black,color,Black,1.0,0.0,0.04);
-
R.queue(controls,g.straight(i),size3.length()/size2);
}
@@ -258,14 +260,16 @@ void drawPixel::render(double size2, const triple& b, const triple& B,
#ifdef HAVE_GL
if(invisible) return;
+ RGBAColour Black(0.0,0.0,0.0,color.A);
+ setcolors(false,color,color,Black,1.0,0.0,0.04);
+
+ setMaterial(material0Data,drawMaterial0);
+
if(bbox2(Min,Max).offscreen()) { // Fully offscreen
R.data.clear();
return;
}
- RGBAColour Black(0.0,0.0,0.0,color.A);
- setcolors(false,color,color,Black,1.0,0.0,0.04);
-
R.queue(v,width);
#endif
}