Class RenderTarget

java.lang.Object
com.mojang.blaze3d.pipeline.RenderTarget
Direct Known Subclasses:
MainTarget, TextureTarget

public abstract class RenderTarget extends Object
  • Field Details

    • UNNAMED_RENDER_TARGETS

      private static int UNNAMED_RENDER_TARGETS
    • width

      public int width
    • height

      public int height
    • viewWidth

      public int viewWidth
    • viewHeight

      public int viewHeight
    • label

      protected final String label
    • useDepth

      public final boolean useDepth
    • useStencil

      public final boolean useStencil
    • colorTexture

      @Nullable protected GpuTexture colorTexture
    • colorTextureView

      @Nullable protected GpuTextureView colorTextureView
    • depthTexture

      @Nullable protected GpuTexture depthTexture
    • depthTextureView

      @Nullable protected GpuTextureView depthTextureView
    • filterMode

      public FilterMode filterMode
  • Constructor Details

    • RenderTarget

      public RenderTarget(@Nullable String pName, boolean pUseDepth)
    • RenderTarget

      public RenderTarget(@Nullable String pName, boolean pUseDepth, boolean useStencil)
  • Method Details

    • resize

      public void resize(int pWidth, int pHeight)
    • destroyBuffers

      public void destroyBuffers()
    • copyDepthFrom

      public void copyDepthFrom(RenderTarget pOtherTarget)
    • createBuffers

      public void createBuffers(int pWidth, int pHeight)
    • setFilterMode

      public void setFilterMode(FilterMode pFilterMode)
    • setFilterMode

      private void setFilterMode(FilterMode pFilterMode, boolean pForce)
    • blitToScreen

      public void blitToScreen()
    • blitAndBlendToTexture

      public void blitAndBlendToTexture(GpuTextureView pTextureView)
    • getColorTexture

      @Nullable public GpuTexture getColorTexture()
    • getColorTextureView

      @Nullable public GpuTextureView getColorTextureView()
    • getDepthTexture

      @Nullable public GpuTexture getDepthTexture()
    • getDepthTextureView

      @Nullable public GpuTextureView getDepthTextureView()