mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user