Defines how a list of points is interpreted when drawing a set of triangles.
Used by Canvas.drawVertices.
- triangles → const VertexMode
Draw each sequence of three points as the vertices of a triangle.
- triangleStrip → const VertexMode
Draw each sliding window of three points as the vertices of a triangle.
- triangleFan → const VertexMode
Draw the first point and each sliding window of two points as the vertices of a triangle.
This mode is not natively supported by most backends, and is instead implemented by unrolling the points into the equivalent VertexMode.triangles, which is generally more efficient.