Replaced love.graphics.point with love.graphics.points, which draws a number of points at a time.

It currently has 3 variants, with the last one using optional per-point colors:

- love.graphics.points(x1, y1, x2, y2, ...)

- love.graphics.points({x1, y1, x2, y2, ...})

- love.graphics.points({{x1, y1 [, r, g, b, a]}, {x2, y2 [, r, g, b, a]}, ...}).
This commit is contained in:
Alex Szpakowski
2015-08-19 17:48:27 -03:00
parent 306049bcfe
commit 1261427304
4 changed files with 96 additions and 14 deletions
+1 -1
View File
@@ -351,7 +351,7 @@ public:
* @param x Point along x-axis.
* @param y Point along y-axis.
**/
void point(float x, float y);
void points(const float *coords, const uint8 *colors, size_t numpoints);
/**
* Draws a series of lines connecting the given vertices.