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 pUseDepth)
    • RenderTarget

      public RenderTarget(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(int pFilterMode)
    • setFilterMode

      private void setFilterMode(int pFilterMode, boolean pForce)
    • checkStatus

      public void checkStatus()
    • bindRead

      public void bindRead()
    • unbindRead

      public void unbindRead()
    • bindWrite

      public void bindWrite(boolean pSetViewport)
    • unbindWrite

      public void unbindWrite()
    • setClearColor

      public void setClearColor(float pRed, float pGreen, float pBlue, float pAlpha)
    • blitToScreen

      public void blitToScreen(int pWidth, int pHeight)
    • blitAndBlendToScreen

      public void blitAndBlendToScreen(int pWidth, int pHeight)
    • clear

      public void clear()
    • getColorTextureId

      public int getColorTextureId()
    • getDepthTextureId

      public int getDepthTextureId()