mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-02 06:12:41 -06:00
Painter20 dasher
git-svn-id: svn://ultimatepp.org/upp/trunk@840 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
68c2a1caaa
commit
068030de69
13 changed files with 231 additions and 505 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue