Class RenderTarget

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

public abstract class RenderTarget extends Object
  • Field Details

    • RED_CHANNEL

      private static final int RED_CHANNEL
      See Also:
    • GREEN_CHANNEL

      private static final int GREEN_CHANNEL
      See Also:
    • BLUE_CHANNEL

      private static final int BLUE_CHANNEL
      See Also:
    • ALPHA_CHANNEL

      private static final int ALPHA_CHANNEL
      See Also:
    • width

      public int width
    • height

      public int height
    • viewWidth

      public int viewWidth
    • viewHeight

      public int viewHeight
    • useDepth

      public final boolean useDepth
    • useStencil

      public final boolean useStencil
    • frameBufferId

      public int frameBufferId
    • colorTextureId

      protected int colorTextureId
    • depthBufferId

      protected int depthBufferId
    • clearChannels

      private final float[] clearChannels
    • filterMode

      public int filterMode
  • Constructor Details

    • RenderTarget

      public RenderTarget(boolean p_166199_)
    • RenderTarget

      public RenderTarget(boolean useDepth, boolean useStencil)
  • Method Details

    • resize

      public void resize(int p_83942_, int p_83943_)
    • destroyBuffers

      public void destroyBuffers()
    • copyDepthFrom

      public void copyDepthFrom(RenderTarget p_83946_)
    • createBuffers

      public void createBuffers(int p_83951_, int p_83952_)
    • setFilterMode

      public void setFilterMode(int p_83937_)
    • setFilterMode

      private void setFilterMode(int p_333818_, boolean p_333775_)
    • checkStatus

      public void checkStatus()
    • bindRead

      public void bindRead()
    • unbindRead

      public void unbindRead()
    • bindWrite

      public void bindWrite(boolean p_83948_)
    • unbindWrite

      public void unbindWrite()
    • setClearColor

      public void setClearColor(float p_83932_, float p_83933_, float p_83934_, float p_83935_)
    • blitToScreen

      public void blitToScreen(int p_83939_, int p_83940_)
    • blitAndBlendToScreen

      public void blitAndBlendToScreen(int p_83972_, int p_83973_)
    • clear

      public void clear()
    • getColorTextureId

      public int getColorTextureId()
    • getDepthTextureId

      public int getDepthTextureId()