Class

VertexMode

Defines how a list of points is interpreted when drawing a set of triangles.

Source set: Common
public 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.

Functions

toString

Source set: Common
override fun toString(): String

Members

Companion

Source set: Common
public companion object

Properties

Triangles

Source set: Common
public val Triangles: VertexMode

Draw each sequence of three points as the vertices of a triangle.

TriangleStrip

Source set: Common
public val TriangleStrip: VertexMode

Draw each sliding window of three points as the vertices of a triangle.

TriangleFan

Source set: Common
public val TriangleFan: VertexMode

Draw the first point and each sliding window of two points as the vertices of a triangle.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: