Class CachedOrthoProjectionMatrixBuffer

java.lang.Object
net.minecraft.client.renderer.CachedOrthoProjectionMatrixBuffer
All Implemented Interfaces:
AutoCloseable

public class CachedOrthoProjectionMatrixBuffer extends Object implements AutoCloseable
  • Field Details

    • buffer

      private final GpuBuffer buffer
    • bufferSlice

      private final GpuBufferSlice 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

      public GpuBufferSlice getBuffer(float pWidth, float pHeight)
    • createProjectionMatrix

      private org.joml.Matrix4f createProjectionMatrix(float p_418447_, float p_418426_)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable