Package limn.render3d.gltf
Record Class GltfModel.SamplerDef
java.lang.Object
java.lang.Record
limn.render3d.gltf.GltfModel.SamplerDef
- Enclosing class:
GltfModel
public static record GltfModel.SamplerDef(int magFilter, int minFilter, int wrapS, int wrapT)
extends Record
A glTF sampler, kept as the file's GL enums;
-1 = unspecified.-
Constructor Summary
ConstructorsConstructorDescriptionSamplerDef(int magFilter, int minFilter, int wrapS, int wrapT) Creates an instance of aSamplerDefrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themagFilterrecord component.intReturns the value of theminFilterrecord component.final StringtoString()Returns a string representation of this record class.intwrapS()Returns the value of thewrapSrecord component.intwrapT()Returns the value of thewrapTrecord component.
-
Constructor Details
-
SamplerDef
public SamplerDef(int magFilter, int minFilter, int wrapS, int wrapT) Creates an instance of aSamplerDefrecord class.- Parameters:
magFilter- the value for themagFilterrecord componentminFilter- the value for theminFilterrecord componentwrapS- the value for thewrapSrecord componentwrapT- the value for thewrapTrecord 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. All components in this record class are compared with '=='. -
magFilter
public int magFilter()Returns the value of themagFilterrecord component.- Returns:
- the value of the
magFilterrecord component
-
minFilter
public int minFilter()Returns the value of theminFilterrecord component.- Returns:
- the value of the
minFilterrecord component
-
wrapS
public int wrapS()Returns the value of thewrapSrecord component.- Returns:
- the value of the
wrapSrecord component
-
wrapT
public int wrapT()Returns the value of thewrapTrecord component.- Returns:
- the value of the
wrapTrecord component
-