diff options
Diffstat (limited to 'graphics/asymptote/beziercurve.h')
-rw-r--r-- | graphics/asymptote/beziercurve.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/graphics/asymptote/beziercurve.h b/graphics/asymptote/beziercurve.h index c05e939346..833da4db27 100644 --- a/graphics/asymptote/beziercurve.h +++ b/graphics/asymptote/beziercurve.h @@ -22,9 +22,9 @@ struct BezierCurve vertexBuffer data; double res,res2; bool Onscreen; - + void init(double res); - + // Approximate bounds by bounding box of control polyhedron. bool offscreen(size_t n, const triple *v) { if(bbox2(n,v).offscreen()) { @@ -36,11 +36,11 @@ struct BezierCurve void render(const triple *p, bool straight); void render(const triple *p, GLuint I0, GLuint I1); - + void append() { material1Data.append(data); } - + void notRendered() { material1Data.rendered=false; } @@ -52,24 +52,24 @@ struct BezierCurve init(pixel*ratio); render(g,straight); } - + }; struct Pixel { vertexBuffer data; - + void append() { material0Data.append0(data); } - + void queue(const triple& p, double width) { data.clear(); MaterialIndex=materialIndex; data.indices.push_back(data.vertex0(p,width)); append(); } - + void draw(); }; |