mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
Developing Painter20
git-svn-id: svn://ultimatepp.org/upp/trunk@847 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
a516bdae79
commit
6be9238f51
61 changed files with 18054 additions and 21 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#include "ScanLine.h"
|
||||
|
||||
static void sQuadratic(VertexTarget& t, const Pointf& p1, const Pointf& p2, const Pointf& p3,
|
||||
static void sQuadratic(LinearPathConsumer& t, const Pointf& p1, const Pointf& p2, const Pointf& p3,
|
||||
double qt, int lvl)
|
||||
{
|
||||
if(lvl < 32) {
|
||||
|
|
@ -22,14 +22,14 @@ static void sQuadratic(VertexTarget& t, const Pointf& p1, const Pointf& p2, cons
|
|||
t.Line(p3);
|
||||
}
|
||||
|
||||
void ApproximateQuadratic(VertexTarget& t, const Pointf& p1, const Pointf& p2, const Pointf& p3,
|
||||
void ApproximateQuadratic(LinearPathConsumer& t, const Pointf& p1, const Pointf& p2, const Pointf& p3,
|
||||
double tolerance)
|
||||
{
|
||||
sQuadratic(t, p1, p2, p3, tolerance * tolerance, 0);
|
||||
t.Line(p3);
|
||||
}
|
||||
|
||||
static void sCubic(VertexTarget& t,
|
||||
static void sCubic(LinearPathConsumer& t,
|
||||
const Pointf& p1, const Pointf& p2, const Pointf& p3, const Pointf& p4,
|
||||
double qt, int lvl)
|
||||
{
|
||||
|
|
@ -59,7 +59,7 @@ static void sCubic(VertexTarget& t,
|
|||
t.Line(p4);
|
||||
}
|
||||
|
||||
void ApproximateCubic(VertexTarget& t,
|
||||
void ApproximateCubic(LinearPathConsumer& t,
|
||||
const Pointf& p1, const Pointf& p2, const Pointf& p3, const Pointf& p4,
|
||||
double tolerance)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue