Package net.minecraft.client.renderer
Class CachedPerspectiveProjectionMatrixBuffer
java.lang.Object
net.minecraft.client.renderer.CachedPerspectiveProjectionMatrixBuffer
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GpuBufferprivate final GpuBufferSliceprivate floatprivate intprivate intprivate final floatprivate final float -
Constructor Summary
ConstructorsConstructorDescriptionCachedPerspectiveProjectionMatrixBuffer(String pLabel, float pZNear, float pZFar) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private org.joml.Matrix4fcreateProjectionMatrix(int pWidth, int pHeight, float pFov) getBuffer(int pWidth, int pHeight, float pFov)
-
Field Details
-
buffer
-
bufferSlice
-
zNear
private final float zNear -
zFar
private final float zFar -
width
private int width -
height
private int height -
fov
private float fov
-
-
Constructor Details
-
CachedPerspectiveProjectionMatrixBuffer
-
-
Method Details
-
getBuffer
-
createProjectionMatrix
private org.joml.Matrix4f createProjectionMatrix(int pWidth, int pHeight, float pFov) -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-