VertexMode
Class
Common
value class VertexMode internal constructor(@Suppress("unused") private val value: Int)
Defines how a list of points is interpreted when drawing a set of triangles.
Used by Canvas.drawVertices
.
Companion Object
Properties
Common
val Triangles = VertexMode(0)
Draw each sequence of three points as the vertices of a triangle.
Common
val TriangleStrip = VertexMode(1)
Draw each sliding window of three points as the vertices of a triangle.
Common
val TriangleFan = VertexMode(2)
Draw the first point and each sliding window of two points as the vertices of a triangle.