UniformVec2Slot class base
A binding to a uniform of type vec2. Calling set on this object updates the uniform's value.
Example:
void updateShader(ui.FragmentShader shader) {
shader.getUniformVec2('uSize').set(100, 100);
}
See also: FragmentShader.getUniformVec2 - How UniformVec2Slot instances are acquired.
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
double x, double y) → void - Set the float value of the bound uniform.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited