mirror of
https://github.com/love2d/love.git
synced 2026-08-17 02:58:31 +02:00
added polyline support to love.graphics.line (the syntax is the same as love.graphics.polygon - either a list or a table of vertices)
This commit is contained in:
@@ -461,6 +461,12 @@ namespace opengl
|
||||
* @param y2 Second y-coordinate.
|
||||
**/
|
||||
void line(float x1, float y1, float x2, float y2);
|
||||
|
||||
/**
|
||||
* Draws a series of lines connecting the given vertices.
|
||||
* @param ... Vertex components (x1, y1, x2, y2, etc.)
|
||||
**/
|
||||
int polyline(lua_State * L);
|
||||
|
||||
/**
|
||||
* Draws a triangle using the three coordinates passed.
|
||||
|
||||
Reference in New Issue
Block a user