VertexMode

enum class VertexMode
kotlin.Any
   ↳ kotlin.Enum<androidx.ui.VertexMode>
   ↳ androidx.ui.VertexMode

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

Used by Canvas.drawVertices. These enum values must be kept in sync with SkVertices::VertexMode.

Summary

Enum values

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

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

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

Public methods

VertexMode

Enum values

triangleFan

enum val triangleFan : VertexMode

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

triangleStrip

enum val triangleStrip : VertexMode

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

triangles

enum val triangles : VertexMode

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

Public methods

toFrameworkVertexMode

fun toFrameworkVertexMode(): VertexMode