Package com.jozufozu.flywheel.backend.gl
Record Class GlStateTracker.State
java.lang.Object
java.lang.Record
com.jozufozu.flywheel.backend.gl.GlStateTracker.State
- Enclosing class:
- GlStateTracker
-
Constructor Summary
ConstructorsConstructorDescriptionState(int[] buffers, int vao, int program) Creates an instance of aStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionint[]buffers()Returns the value of thebuffersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intprogram()Returns the value of theprogramrecord component.voidrestore()final StringtoString()Returns a string representation of this record class.intvao()Returns the value of thevaorecord component.
-
Constructor Details
-
State
public State(int[] buffers, int vao, int program) Creates an instance of aStaterecord class.- Parameters:
buffers- the value for thebuffersrecord componentvao- the value for thevaorecord componentprogram- the value for theprogramrecord component
-
-
Method Details
-
restore
public void restore() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
buffers
public int[] buffers()Returns the value of thebuffersrecord component.- Returns:
- the value of the
buffersrecord component
-
vao
public int vao()Returns the value of thevaorecord component.- Returns:
- the value of the
vaorecord component
-
program
public int program()Returns the value of theprogramrecord component.- Returns:
- the value of the
programrecord component
-