UniformValue class
Instance of a uniform value. Represented by a ByteBuffer.
The []
operator can be used to set the raw data of a field. If the data is
different from the last set it will recalculated the resource.
- Inheritance
-
- Object
- Resource<
ByteBuffer?> - UniformInstance<
String, ByteBuffer> - UniformValue
Constructors
- UniformValue.new(UniformSlot slot)
- Instance of a uniform value. Represented by a ByteBuffer.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- recreateResource ↔ bool
-
getter/setter pairinherited
- resource → ByteBuffer?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slot → UniformSlot
-
The slot this instance belongs too.
finalinherited
Methods
-
bind(
GraphicsDevice device) → void -
override
-
createResource(
) → ByteBuffer -
override
-
makeKey(
int? index, String? field) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
String key, ByteBuffer value) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String key) → Float32List? -
operator []=(
String key, Float32List data) → void