Record Class GLVersion
java.lang.Object
java.lang.Record
dev.pfaff.glass.opengl.GLVersion
- Record Components:
major-minor-raw- the version as reported byGL.glGetString(dev.pfaff.glass.opengl.enums.GLStringName)(VERSION)
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGLVersion(int major, int minor, String raw, GLVersion.API api) Creates an instance of aGLVersionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapi()Returns the value of theapirecord component.final booleanIndicates whether some other object is "equal to" this one.static GLVersionfinal inthashCode()Returns a hash code value for this object.intmajor()Returns the value of themajorrecord component.intminor()Returns the value of theminorrecord component.raw()Returns the value of therawrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ES_PREFIX
- See Also:
-
-
Constructor Details
-
Method Details
-
get
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
major
-
minor
-
raw
-
api
Returns the value of theapirecord component.- Returns:
- the value of the
apirecord component
-