GltfPrimitiveMode enum

glTF primitive topology.

The conversion to a triangle list lives here rather than as a static helper on the loader: it is entirely determined by the topology, and keeping it on the enum means the switch is exhaustive by construction.

Inheritance
Available extensions

Values

points → const GltfPrimitiveMode
const GltfPrimitiveMode(0)
lines → const GltfPrimitiveMode
const GltfPrimitiveMode(1)
lineLoop → const GltfPrimitiveMode
const GltfPrimitiveMode(2)
lineStrip → const GltfPrimitiveMode
const GltfPrimitiveMode(3)
triangles → const GltfPrimitiveMode
const GltfPrimitiveMode(4)
triangleStrip → const GltfPrimitiveMode
const GltfPrimitiveMode(5)
triangleFan → const GltfPrimitiveMode
const GltfPrimitiveMode(6)

Properties

code → int
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
isTriangles → bool
Whether this topology produces triangles at all.
no setter
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
toTriangleList(Uint32List indices) → Uint32List
Rewrites the indices as an ordinary triangle list.

Operators

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

Static Methods

fromCode(int code) → GltfPrimitiveMode

Constants

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