Package net.minecraft.client.renderer
Class CachedOrthoProjectionMatrixBuffer
java.lang.Object
net.minecraft.client.renderer.CachedOrthoProjectionMatrixBuffer
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GpuBufferprivate final GpuBufferSliceprivate floatprivate final booleanprivate floatprivate final floatprivate final float -
Constructor Summary
ConstructorsConstructorDescriptionCachedOrthoProjectionMatrixBuffer(String pLabel, float pZNear, float pZFar, boolean pInvertY) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private Matrix4fcreateProjectionMatrix(float pWidth, float pHeight) getBuffer(float pWidth, float pHeight)
-
Field Details
-
buffer
-
bufferSlice
-
zNear
private final float zNear -
zFar
private final float zFar -
invertY
private final boolean invertY -
width
private float width -
height
private float height
-
-
Constructor Details
-
CachedOrthoProjectionMatrixBuffer
public CachedOrthoProjectionMatrixBuffer(String pLabel, float pZNear, float pZFar, boolean pInvertY)
-
-
Method Details
-
getBuffer
-
createProjectionMatrix
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-