M3GltfGeom class

Geometry loaded from a glTF model primitive.

Constructs GPU-ready VBO/IBO from GltfPrimitive data.

Inheritance

Constructors

M3GltfGeom.fromPrimitive(GltfPrimitive primitive)

Properties

gl RenderingContext
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
localBounding M3Bounding
getter/setter pairinherited
name String
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vertexCount int
no setterinherited

Methods

computeNormals(List<int> indices) → void
Computes vertex normals automatically based on triangle geometry.
inherited
dispose() → void
Releases all GPU resources associated with this geometry.
inherited
draw(M3Program prog, {bool bSolid = true}) → void
Renders the geometry using the specified shader program.
inherited
getTriangleCount({bool bSolid = true}) int
inherited
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