Class LegacyAdvancedFboImpl

java.lang.Object
foundry.veil.impl.client.render.framebuffer.AdvancedFboImpl
foundry.veil.impl.client.render.framebuffer.LegacyAdvancedFboImpl
All Implemented Interfaces:
AdvancedFbo, AutoCloseable, org.lwjgl.system.NativeResource

@Internal public class LegacyAdvancedFboImpl extends AdvancedFboImpl
Legacy implementation of AdvancedFbo.
  • Constructor Details

  • Method Details

    • create

      public void create()
      Description copied from interface: AdvancedFbo
      Creates the framebuffer and all attachments.
    • clear

      public void clear(float red, float green, float blue, float alpha, int clearMask, int[] buffers)
      Description copied from interface: AdvancedFbo
      Clears the specified buffers.
      Parameters:
      clearMask - The buffers to clear
    • resetDrawBuffers

      public void resetDrawBuffers()
      Description copied from interface: AdvancedFbo
      Resets the draw buffers to enable all buffers.
    • drawBuffers

      public void drawBuffers(int... buffers)
      Description copied from interface: AdvancedFbo
      Sets the buffers to draw to.
      Parameters:
      buffers - The texture units of the color buffers to enable
    • resolveToFbo

      public void resolveToFbo(int id, int width, int height, int mask, int filtering)
      Description copied from interface: AdvancedFbo
      Resolves this framebuffer to the framebuffer with the specified id as the target.
      Parameters:
      id - The id of the framebuffer to copy into
      width - The width of the framebuffer being copied into
      height - The height of the framebuffer being copied into
      mask - The buffers to copy into the provided framebuffer
      filtering - The filter to use if this framebuffer and the provided framebuffer are different sizes
    • resolveToAdvancedFbo

      public void resolveToAdvancedFbo(AdvancedFbo target, int mask, int filtering)
      Description copied from interface: AdvancedFbo
      Resolves this framebuffer to the provided advanced framebuffer as the target.
      Parameters:
      target - The target framebuffer to copy data into
      mask - The buffers to copy into the provided framebuffer
      filtering - The filter to use if this framebuffer and the provided framebuffer are different sizes
    • resolveToRenderTarget

      public void resolveToRenderTarget(com.mojang.blaze3d.pipeline.RenderTarget target, int mask, int filtering)
      Description copied from interface: AdvancedFbo
      Resolves this framebuffer to the provided minecraft framebuffer as the target.
      Parameters:
      target - The target framebuffer to copy data into
      mask - The buffers to copy into the provided framebuffer
      filtering - The filter to use if this framebuffer and the provided framebuffer are different sizes
    • setColorAttachmentTexture

      public void setColorAttachmentTexture(int attachment, int textureId, int layer)
      Description copied from interface: AdvancedFbo

      Updates the texture attachment reference for the specified slot. if the attachment is not known to be an AdvancedFboMutableTextureAttachment, use AdvancedFbo.isMutableColorTextureAttachment(int) before calling this.

      Parameters:
      attachment - The attachment to modify
      textureId - The id of the texture to draw into
      layer - The texture layer to attach. For cubemaps this is the attachment face
    • setDepthAttachmentTexture

      public void setDepthAttachmentTexture(int textureId, int layer)
      Description copied from interface: AdvancedFbo

      Updates the depth texture attachment reference for the specified slot. If the attachment is not known to be an AdvancedFboMutableTextureAttachment, use AdvancedFbo.isMutableColorTextureAttachment(int) before calling this.

      Parameters:
      textureId - The id of the texture to draw into
      layer - The texture layer to attach. For cubemaps this is the attachment face