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:
Bill Meltsner
2010-01-19 08:27:12 -05:00
parent 46b3d2e254
commit 8de70ca2aa
3 changed files with 57 additions and 5 deletions
+6
View File
@@ -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.