Method DrawLine
DrawLine(List<ushort>, List<Vertex>, Vector2, Vector2, float, Color, Color)
Draws a line.
Declaration
public static void DrawLine(List<ushort> indices, List<Vertex> vertices, Vector2 pointA, Vector2 pointB, float thickness, Color colorA, Color colorB)
Parameters
Type | Name | Description |
---|---|---|
List<ushort> | indices | Indice list in which we'll add the line triangle indices |
List<Vertex> | vertices | Vertice list in which we'll add the line points |
Vector2 | pointA | Start point of the line |
Vector2 | pointB | Stop point of the line |
float | thickness | Line thickness |
Color | colorA | Start color for gradient |
Color | colorB | End color for gradient |