Package limn.render3d.gltf
Record Class GltfModel.Primitive
java.lang.Object
java.lang.Record
limn.render3d.gltf.GltfModel.Primitive
- Enclosing class:
GltfModel
One drawable range of a mesh with its material index (
-1 = default).-
Constructor Summary
Constructors -
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.intmaterial()Returns the value of thematerialrecord component.mesh()Returns the value of themeshrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Primitive
Creates an instance of aPrimitiverecord class.- Parameters:
mesh- the value for themeshrecord componentmaterial- the value for thematerialrecord 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 '=='. -
mesh
Returns the value of themeshrecord component.- Returns:
- the value of the
meshrecord component
-
material
public int material()Returns the value of thematerialrecord component.- Returns:
- the value of the
materialrecord component
-