Use love::Vector (8 bytes) instead of love::Vertex (20 bytes) for love.math.triangulate and love.math.isConvex.

This commit is contained in:
Alex Szpakowski
2016-08-24 18:02:27 -03:00
parent acde58d311
commit 677a8d60b8
4 changed files with 32 additions and 35 deletions
-8
View File
@@ -68,14 +68,6 @@ struct Vertex
unsigned char r, g, b, a;
};
struct Triangle
{
Triangle(const Vertex &x, const Vertex &y, const Vertex &z)
: a(x), b(y), c(z)
{}
Vertex a, b, c;
};
inline int nextP2(int x)
{
x += (x == 0);