GLDraw: new features

git-svn-id: svn://ultimatepp.org/upp/trunk@12729 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-02-02 09:11:34 +00:00
parent ebbc917bba
commit 7179a03ca4
7 changed files with 58 additions and 16 deletions

View file

@ -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;