mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-12 06:12:46 -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
|
|
@ -185,12 +185,12 @@ Image PaintLion(Size sz)
|
|||
}
|
||||
|
||||
static Vector<ColorPolygon> l = Lion();
|
||||
Rasterizer r(sz.cx, sz.cy);
|
||||
static Rasterizer r(sz.cx, sz.cy);
|
||||
for(int i = 0; i < l.GetCount(); i++) {
|
||||
Vector<Pointf>& p = l[i].point;
|
||||
r.Move(p[0].x, p[0].y);
|
||||
r.Move(p[0]);
|
||||
for(int j = 1; j < p.GetCount(); j++)
|
||||
r.Line(p[j].x, p[j].y);
|
||||
r.Line(p[j]);
|
||||
Render(ib, r, l[i].color, false);
|
||||
r.Reset();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue