Record Class GlStateTracker.State
java.lang.Object
java.lang.Record
dev.engine_room.flywheel.backend.gl.GlStateTracker.State
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
GlStateTracker
public static record GlStateTracker.State(int[] buffers, int vao, int program, int activeTexture)
extends Record
implements AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionState(int[] buffers, int vao, int program, int activeTexture) Creates an instance of aStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveTexturerecord component.int[]buffers()Returns the value of thebuffersrecord component.voidclose()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, int activeTexture) Creates an instance of aStaterecord class.- Parameters:
buffers- the value for thebuffersrecord componentvao- the value for thevaorecord componentprogram- the value for theprogramrecord componentactiveTexture- the value for theactiveTexturerecord component
-
-
Method Details
-
restore
public void restore() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
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
-
activeTexture
public int activeTexture()Returns the value of theactiveTexturerecord component.- Returns:
- the value of the
activeTexturerecord component
-