GpuModel class final
A model uploaded to the GPU: its primitives' buffers, its materials' textures, and the data it came from.
Properties
-
clips
→ Map<
String, AnimationClip> -
Its animations, by name (a later one with the same name wins).
latefinal
- data → ModelData
-
The CPU model.
final
- fallbackMaterial → GpuMaterial
-
The material for primitives that name none.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
materials
→ List<
GpuMaterial> -
Materials, by material index.
final
-
meshes
→ List<
List< GpuPrimitive> > -
Primitives, by mesh index then primitive.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- skeleton → Skeleton
-
Its node tree, for posing it.
latefinal
Methods
-
materialOf(
GpuPrimitive primitive) → GpuMaterial -
The material of
primitive. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withMaterialValues(
List< MaterialData> values) → GpuModel -
This model with its materials' values replaced by
values(one per material, in order), sharing its buffers and textures: what a material preview shows while the values change, uploading nothing.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited