mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
GLDraw: new features
git-svn-id: svn://ultimatepp.org/upp/trunk@12729 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
ebbc917bba
commit
7179a03ca4
7 changed files with 58 additions and 16 deletions
|
|
@ -251,6 +251,8 @@ void DrawGL::DrawPolyPolylineOp(const Point *vertices, int vertex_count, const i
|
|||
DoDrawPolylines(poly, width, color);
|
||||
}
|
||||
|
||||
extern int sTesselateCounter;
|
||||
|
||||
void DrawGL::DoDrawPolygons(const Vector<Vector<Pointf>>& path, Color color)
|
||||
{
|
||||
const int TESS_LIMIT = 200;
|
||||
|
|
@ -268,6 +270,7 @@ void DrawGL::DoDrawPolygons(const Vector<Vector<Pointf>>& path, Color color)
|
|||
}
|
||||
Vector<Pointf> vertex;
|
||||
Vector<Tuple<int, int, int>> triangle;
|
||||
sTesselateCounter++;
|
||||
RTIMING("Tesselate");
|
||||
Tesselate(path, vertex, triangle, false);
|
||||
int ii0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue