Record Class TextureOptions
java.lang.Object
java.lang.Record
dev.pfaff.altargui.texture.TextureOptions
public record TextureOptions(dev.pfaff.glass.opengl.enums.GLTextureMagFilter minFilter, dev.pfaff.glass.opengl.enums.GLTextureMagFilter magFilter, boolean clamp)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextureOptions
(dev.pfaff.glass.opengl.enums.GLTextureMagFilter minFilter, dev.pfaff.glass.opengl.enums.GLTextureMagFilter magFilter, boolean clamp) Creates an instance of aTextureOptions
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
clamp()
Returns the value of theclamp
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.dev.pfaff.glass.opengl.enums.GLTextureMagFilter
Returns the value of themagFilter
record component.dev.pfaff.glass.opengl.enums.GLTextureMagFilter
Returns the value of theminFilter
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
TextureOptions
public TextureOptions(dev.pfaff.glass.opengl.enums.GLTextureMagFilter minFilter, dev.pfaff.glass.opengl.enums.GLTextureMagFilter magFilter, boolean clamp) Creates an instance of aTextureOptions
record class.- Parameters:
minFilter
- the value for theminFilter
record componentmagFilter
- the value for themagFilter
record componentclamp
- the value for theclamp
record component
-
-
Method Details
-
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 '=='. -
minFilter
public dev.pfaff.glass.opengl.enums.GLTextureMagFilter minFilter()Returns the value of theminFilter
record component.- Returns:
- the value of the
minFilter
record component
-
magFilter
public dev.pfaff.glass.opengl.enums.GLTextureMagFilter magFilter()Returns the value of themagFilter
record component.- Returns:
- the value of the
magFilter
record component
-
clamp
public boolean clamp()Returns the value of theclamp
record component.- Returns:
- the value of the
clamp
record component
-