Class PosedInstance
java.lang.Object
dev.engine_room.flywheel.lib.instance.AbstractInstance
dev.engine_room.flywheel.lib.instance.ColoredLitInstance
dev.engine_room.flywheel.lib.instance.ColoredLitOverlayInstance
dev.engine_room.flywheel.lib.instance.PosedInstance
- All Implemented Interfaces:
Instance,FlatLit,Affine<PosedInstance>,Rotate<PosedInstance>,Scale<PosedInstance>,Transform<PosedInstance>,Translate<PosedInstance>
-
Field Summary
FieldsFields inherited from class dev.engine_room.flywheel.lib.instance.ColoredLitOverlayInstance
overlayFields inherited from class dev.engine_room.flywheel.lib.instance.ColoredLitInstance
alpha, blue, green, light, redFields inherited from class dev.engine_room.flywheel.lib.instance.AbstractInstance
handle, type -
Constructor Summary
ConstructorsConstructorDescriptionPosedInstance(InstanceType<? extends PosedInstance> type, InstanceHandle handle) -
Method Summary
Modifier and TypeMethodDescriptionmulNormal(org.joml.Matrix3fc normal) mulPose(org.joml.Matrix4fc pose) rotate(org.joml.Quaternionfc quaternion) rotateAround(org.joml.Quaternionfc quaternion, float x, float y, float z) scale(float x, float y, float z) setTransform(com.mojang.blaze3d.vertex.PoseStack stack) setTransform(com.mojang.blaze3d.vertex.PoseStack.Pose pose) setTransform(org.joml.Matrix4fc pose, org.joml.Matrix3fc normal) Sets the transform matrices to be all zeros.translate(float x, float y, float z) Methods inherited from class dev.engine_room.flywheel.lib.instance.ColoredLitOverlayInstance
overlayMethods inherited from class dev.engine_room.flywheel.lib.instance.ColoredLitInstance
color, color, color, color, color, color, colorArgb, colorRgb, lightMethods inherited from class dev.engine_room.flywheel.lib.instance.AbstractInstance
delete, handle, setChanged, setVisible, typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.engine_room.flywheel.lib.transform.Affine
rotateAround, rotateCentered, rotateCentered, rotateCentered, rotateCentered, rotateCentered, rotateCentered, rotateCenteredDegrees, rotateCenteredDegrees, rotateCenteredDegrees, rotateCenteredDegrees, rotateCenteredDegrees, rotateXCentered, rotateXCenteredDegrees, rotateYCentered, rotateYCenteredDegrees, rotateZCentered, rotateZCenteredDegreesMethods inherited from interface dev.engine_room.flywheel.api.instance.Instance
delete, handle, setChanged, setVisible, typeMethods inherited from interface dev.engine_room.flywheel.lib.transform.Rotate
rotate, rotate, rotate, rotate, rotate, rotate, rotateDegrees, rotateDegrees, rotateDegrees, rotateDegrees, rotateDegrees, rotateTo, rotateTo, rotateTo, rotateToFace, rotateX, rotateXDegrees, rotateY, rotateYDegrees, rotateZ, rotateZDegrees, selfMethods inherited from interface dev.engine_room.flywheel.lib.transform.Scale
scale, scale, scaleX, scaleY, scaleZMethods inherited from interface dev.engine_room.flywheel.lib.transform.Transform
transform, transform, transformMethods inherited from interface dev.engine_room.flywheel.lib.transform.Translate
center, nudge, translate, translate, translate, translate, translate, translate, translateBack, translateBack, translateBack, translateBack, translateBack, translateBack, translateBack, translateX, translateY, translateZ, uncenter
-
Field Details
-
pose
public final org.joml.Matrix4f pose -
normal
public final org.joml.Matrix3f normal
-
-
Constructor Details
-
PosedInstance
-
-
Method Details
-
mulPose
- Specified by:
mulPosein interfaceTransform<PosedInstance>
-
mulNormal
- Specified by:
mulNormalin interfaceTransform<PosedInstance>
-
rotateAround
- Specified by:
rotateAroundin interfaceAffine<PosedInstance>
-
translate
- Specified by:
translatein interfaceTranslate<PosedInstance>
-
rotate
- Specified by:
rotatein interfaceRotate<PosedInstance>
-
scale
- Specified by:
scalein interfaceScale<PosedInstance>
-
setTransform
-
setTransform
-
setTransform
-
setIdentityTransform
-
setZeroTransform
Sets the transform matrices to be all zeros.This will allow the GPU to quickly discard all geometry for this instance, effectively "turning it off".
-