Record Class Uniform.OfVec2f
java.lang.Object
java.lang.Record
dev.pfaff.altargui.shader.Uniform.OfVec2f
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.pfaff.altargui.shader.Uniform
Uniform.OfVec2f
-
Constructor Summary
ConstructorsConstructorDescriptionOfVec2f
(UniformHandle handle) Creates an instance of aOfVec2f
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.handle()
Returns the value of thehandle
record component.final int
hashCode()
Returns a hash code value for this object.void
set
(float x, float y) Sets the value of the uniform.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
OfVec2f
Creates an instance of aOfVec2f
record class.- Parameters:
handle
- the value for thehandle
record component
-
-
Method Details
-
set
public void set(float x, float y) Sets the value of the uniform. IfGLWrapper.canUseGlProgramUniformFunctions()
isfalse
, the caller must ensure that theshader
'sshader
is bound before calling this method. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
handle
Returns the value of thehandle
record component.
-