lovr.graphics.triangle
Draws triangles from a list of points.
lovr.graphics.triangle(mode, x, y, z, ...)
Arguments
Name | Type | Description |
mode | DrawStyle | How to draw the triangle. |
x | number | The x coordinate of a vertex. |
y | number | The y coordinate of a vertex. |
z | number | The z coordinate of a vertex. |
... | number | More vertices. |
Returns
Nothing
lovr.graphics.triangle(material, x, y, z, ...)
Arguments
Name | Type | Description |
material | Material | The Material to apply. |
x | number | The x coordinate of a vertex. |
y | number | The y coordinate of a vertex. |
z | number | The z coordinate of a vertex. |
... | number | More vertices. |
Returns
Nothing
Notes
The number of vertices must be a multiple of three.
See also
lovr.graphics