Package sc.fiji.snt.util
Record Class GLUtils.Info
java.lang.Object
java.lang.Record
sc.fiji.snt.util.GLUtils.Info
- Record Components:
vendor-GL_VENDOR, e.g., "NVIDIA Corporation"renderer-GL_RENDERER, e.g., "NVIDIA GeForce RTX 3080/PCIe/SSE2"version-GL_VERSION, e.g., "4.6.0 NVIDIA 551.23"maxTexture3DSize-GL_MAX_3D_TEXTURE_SIZE, or a conservative default if unknownavailable- false if no GL context could be created (headless, no/broken drivers, etc)
- Enclosing class:
GLUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theavailablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxTexture3DSizerecord component.renderer()Returns the value of therendererrecord component.final StringtoString()Returns a string representation of this record class.vendor()Returns the value of thevendorrecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
Info
public Info(String vendor, String renderer, String version, int maxTexture3DSize, boolean available) Creates an instance of aInforecord class.- Parameters:
vendor- the value for thevendorrecord componentrenderer- the value for therendererrecord componentversion- the value for theversionrecord componentmaxTexture3DSize- the value for themaxTexture3DSizerecord componentavailable- the value for theavailablerecord component
-
-
Method Details
-
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 '=='. -
vendor
Returns the value of thevendorrecord component.- Returns:
- the value of the
vendorrecord component
-
renderer
Returns the value of therendererrecord component.- Returns:
- the value of the
rendererrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
maxTexture3DSize
public int maxTexture3DSize()Returns the value of themaxTexture3DSizerecord component.- Returns:
- the value of the
maxTexture3DSizerecord component
-
available
public boolean available()Returns the value of theavailablerecord component.- Returns:
- the value of the
availablerecord component
-