Painter20 dasher

git-svn-id: svn://ultimatepp.org/upp/trunk@840 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-02-07 13:35:31 +00:00
parent 68c2a1caaa
commit 068030de69
13 changed files with 231 additions and 505 deletions

View file

@ -1,20 +1,20 @@
#include "ScanLine.h"
void Painter::Move(Pointf p)
void BufferPainter::Move(Pointf p)
{
Segment& m = PathAdd<Segment>();
m.kind = MOVE;
m.p = p;
}
void Painter::Line(Pointf p)
void BufferPainter::Line(Pointf p)
{
Segment& m = PathAdd<Segment>();
m.kind = LINE;
m.p = p;
}
void Painter::Quadratic(Pointf p1, Pointf p)
void BufferPainter::Quadratic(Pointf p1, Pointf p)
{
QuadraticSegment& m = PathAdd<QuadraticSegment>();
m.kind = QUADRATIC;
@ -22,7 +22,7 @@ void Painter::Quadratic(Pointf p1, Pointf p)
m.p1 = p1;
}
void Painter::Cubic(Pointf p1, Pointf p2, Pointf p)
void BufferPainter::Cubic(Pointf p1, Pointf p2, Pointf p)
{
CubicSegment& m = PathAdd<CubicSegment>();
m.kind = QUADRATIC;