Package ke.ric.renderer.api
Record Class ResolvedMesh
java.lang.Object
java.lang.Record
ke.ric.renderer.api.ResolvedMesh
- Record Components:
declaredTextureWidth- model-declared texture width in pixels, 1..65535declaredTextureHeight- model-declared texture height in pixels, 1..65535triangles- defensively copied nonempty triangle list
public record ResolvedMesh(int declaredTextureWidth, int declaredTextureHeight, List<ResolvedTriangle> triangles)
extends Record
Immutable nonempty baked triangle list. Triangles must agree on alpha mode and sidedness;
every triangle retains its exact material/texture evidence.
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedMesh(int declaredTextureWidth, int declaredTextureHeight, List<ResolvedTriangle> triangles) Creates an instance of aResolvedMeshrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedeclaredTextureHeightrecord component.intReturns the value of thedeclaredTextureWidthrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thetrianglesrecord component.
-
Constructor Details
-
ResolvedMesh
public ResolvedMesh(int declaredTextureWidth, int declaredTextureHeight, List<ResolvedTriangle> triangles) Creates an instance of aResolvedMeshrecord class.- Parameters:
declaredTextureWidth- the value for thedeclaredTextureWidthrecord componentdeclaredTextureHeight- the value for thedeclaredTextureHeightrecord componenttriangles- the value for thetrianglesrecord 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 '=='. -
declaredTextureWidth
public int declaredTextureWidth()Returns the value of thedeclaredTextureWidthrecord component.- Returns:
- the value of the
declaredTextureWidthrecord component
-
declaredTextureHeight
public int declaredTextureHeight()Returns the value of thedeclaredTextureHeightrecord component.- Returns:
- the value of the
declaredTextureHeightrecord component
-
triangles
Returns the value of thetrianglesrecord component.- Returns:
- the value of the
trianglesrecord component
-