Removed internal code for love.graphics.triangle and love.graphics.quad

This commit is contained in:
Alex Szpakowski
2013-03-03 18:49:56 -04:00
parent 0efdc732e0
commit f0ca4f6c97
4 changed files with 2 additions and 79 deletions
+2 -13
View File
@@ -1003,21 +1003,10 @@ void Graphics::polyline(const float *coords, size_t count)
delete[] overdraw;
}
void Graphics::triangle(DrawMode mode, float x1, float y1, float x2, float y2, float x3, float y3)
{
float coords[] = { x1,y1, x2,y2, x3,y3, x1,y1 };
polygon(mode, coords, 4 * 2);
}
void Graphics::rectangle(DrawMode mode, float x, float y, float w, float h)
{
quad(mode, x,y, x,y+h, x+w,y+h, x+w,y);
}
void Graphics::quad(DrawMode mode, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
{
float coords[] = { x1,y1, x2,y2, x3,y3, x4,y4, x1,y1 };
polygon(mode, coords, 5 * 2);
float coords[] = {x,y, x,y+h, x+w,y+h, x+w,y};
polygon(mode, coords, 4 * 2);
}
void Graphics::circle(DrawMode mode, float x, float y, float radius, int points)