ShapeValues class final
What a shape's mesh or look was last made from, kept to tell cheaply whether it has changed: a renderer keeps one per shape and each frame gives it the shape's values (Primitive3D.writeShapeValues, Primitive3D.writeMaterialValues) between begin and end. Numbers are compared in place, so nothing is made while nothing changes.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
double v) → void -
The next number is
v. -
addBool(
bool v) → void -
The next number is 1 for
v, else 0. -
addInt(
int v) → void -
The next number is
v. -
addObject(
Object? v) → void -
The next value is
v, compared with==. -
begin(
) → void - Starts a frame's look at the values.
-
end(
) → bool - Ends the look: whether anything differs from the last one (always so the first time).
-
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