Record Class TransformedVertexCallback
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.vertex.TransformedVertexCallback
- All Implemented Interfaces:
DelegatingVertexCallback, VertexCallback
public record TransformedVertexCallback(VertexCallback delegate, org.joml.Matrix4fc posMatrix, org.joml.Matrix3fc normalMatrix, boolean normalize, org.joml.Vector3f temp)
extends Record
implements DelegatingVertexCallback
-
Constructor Summary
ConstructorsConstructorDescriptionTransformedVertexCallback(VertexCallback delegate, org.joml.Matrix4fc posMatrix, org.joml.Matrix3fc normalMatrix, boolean normalize, org.joml.Vector3f temp) Creates an instance of aTransformedVertexCallbackrecord class. -
Method Summary
Modifier and TypeMethodDescriptionacceptNormal(float nx, float ny, float nz) acceptPos(float x, float y, float z) delegate()Returns the value of thedelegaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thenormalizerecord component.org.joml.Matrix3fcReturns the value of thenormalMatrixrecord component.org.joml.Matrix4fcReturns the value of theposMatrixrecord component.org.joml.Vector3ftemp()Returns the value of thetemprecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface DelegatingVertexCallback
acceptCol, acceptLight, acceptLineWidth, acceptOverlay, acceptTexMethods inherited from interface VertexCallback
line, line, line, line, onlyPos, onlyPosCol, onlyPosColNormal, onlyPosColTex, onlyPosColTexNormal, onlyPosTex, quad, withColor, withLight, withLineWidth, withNormal, withOverlay, withTex, withTransformedNormals, withTransformedPositions, withTransformedPositionsAndNormals
-
Constructor Details
-
TransformedVertexCallback
public TransformedVertexCallback(VertexCallback delegate, org.joml.Matrix4fc posMatrix, org.joml.Matrix3fc normalMatrix, boolean normalize, org.joml.Vector3f temp) Creates an instance of aTransformedVertexCallbackrecord class.- Parameters:
delegate- the value for thedelegaterecord componentposMatrix- the value for theposMatrixrecord componentnormalMatrix- the value for thenormalMatrixrecord componentnormalize- the value for thenormalizerecord componenttemp- the value for thetemprecord component
-
-
Method Details
-
acceptPos
- Specified by:
acceptPosin interfaceDelegatingVertexCallback- Specified by:
acceptPosin interfaceVertexCallback
-
acceptNormal
- Specified by:
acceptNormalin interfaceDelegatingVertexCallback- Specified by:
acceptNormalin interfaceVertexCallback
-
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 thecomparemethod from their corresponding wrapper classes. -
delegate
Returns the value of thedelegaterecord component.- Specified by:
delegatein interfaceDelegatingVertexCallback- Returns:
- the value of the
delegaterecord component
-
posMatrix
public org.joml.Matrix4fc posMatrix()Returns the value of theposMatrixrecord component.- Returns:
- the value of the
posMatrixrecord component
-
normalMatrix
public org.joml.Matrix3fc normalMatrix()Returns the value of thenormalMatrixrecord component.- Returns:
- the value of the
normalMatrixrecord component
-
normalize
public boolean normalize()Returns the value of thenormalizerecord component.- Returns:
- the value of the
normalizerecord component
-
temp
public org.joml.Vector3f temp()Returns the value of thetemprecord component.- Returns:
- the value of the
temprecord component
-