PrimitiveType enum

How a sequence of vertices is assembled into primitives to be rasterized.

Inheritance
Available extensions

Values

triangle → const PrimitiveType

Draws a separate triangle for each group of three vertices.

Vertices [A, B, C, D, E, F] produce triangles [ABC, DEF].

triangleStrip → const PrimitiveType

Draws a connected strip of triangles, adding one triangle for each vertex after the first two.

Vertices [A, B, C, D, E, F] produce triangles [ABC, BCD, CDE, DEF].

line → const PrimitiveType

Draws a separate line segment for each pair of vertices.

Vertices [A, B, C, D] produce line segments [AB, CD].

lineStrip → const PrimitiveType

Draws a single connected line that passes through every vertex in order.

Vertices [A, B, C] produce one connected line [ABC].

point → const PrimitiveType

Draws a point at each vertex.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<PrimitiveType>
A constant List of the values in this enum, in order of their declaration.