plugin/tess2: fixes

git-svn-id: svn://ultimatepp.org/upp/trunk@12352 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-10-09 21:20:17 +00:00
parent e53cd96903
commit 15d88366c3
2 changed files with 5 additions and 5 deletions

View file

@ -14,7 +14,7 @@ void stdFree(void* userData, void* ptr)
delete[] (byte *)ptr;
}
void Tesselate(Vector<Vector<Pointf>>& shape, Vector<Pointf>& vertex,
void Tesselate(const Vector<Vector<Pointf>>& shape, Vector<Pointf>& vertex,
Vector<Tuple<int, int, int>> *triangle, Vector<int> *index,
bool evenodd)
{
@ -75,13 +75,13 @@ void Tesselate(Vector<Vector<Pointf>>& shape, Vector<Pointf>& vertex,
tessDeleteTess(tess);
}
void Tesselate(Vector<Vector<Pointf>>& shape, Vector<Pointf>& vertex, Vector<Tuple<int, int, int>>& triangle,
void Tesselate(const Vector<Vector<Pointf>>& shape, Vector<Pointf>& vertex, Vector<Tuple<int, int, int>>& triangle,
bool evenodd)
{
Tesselate(shape, vertex, &triangle, NULL, evenodd);
}
void Tesselate(Vector<Vector<Pointf>>& shape, Vector<Pointf>& vertex, Vector<int>& index,
void Tesselate(const Vector<Vector<Pointf>>& shape, Vector<Pointf>& vertex, Vector<int>& index,
bool evenodd)
{
Tesselate(shape, vertex, NULL, &index, evenodd);

View file

@ -5,8 +5,8 @@
namespace Upp {
void Tesselate(Vector<Vector<Pointf>>& shape, Vector<Pointf>& vertex, Vector<Tuple<int, int, int>>& triangle, bool evenodd = false);
void Tesselate(Vector<Vector<Pointf>>& shape, Vector<Pointf>& vertex, Vector<int>& index, bool evenodd = false);
void Tesselate(const Vector<Vector<Pointf>>& shape, Vector<Pointf>& vertex, Vector<Tuple<int, int, int>>& triangle, bool evenodd = false);
void Tesselate(const Vector<Vector<Pointf>>& shape, Vector<Pointf>& vertex, Vector<int>& index, bool evenodd = false);
};