Class LegacyVanillaAdvancedFboWrapper
java.lang.Object
foundry.veil.impl.client.render.wrapper.VanillaAdvancedFboWrapper
foundry.veil.impl.client.render.wrapper.LegacyVanillaAdvancedFboWrapper
- All Implemented Interfaces:
AdvancedFbo,AutoCloseable,org.lwjgl.system.NativeResource
Legacy implementation of
VanillaAdvancedFboWrapper.-
Nested Class Summary
Nested classes/interfaces inherited from interface foundry.veil.api.client.render.framebuffer.AdvancedFbo
AdvancedFbo.Builder -
Constructor Summary
ConstructorsConstructorDescriptionLegacyVanillaAdvancedFboWrapper(Supplier<com.mojang.blaze3d.pipeline.RenderTarget> renderTargetSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear(float red, float green, float blue, float alpha, float depth, int buffers, int... clearBuffers) Clears the specified buffers.voidresolveToAdvancedFbo(AdvancedFbo target, int mask, int filtering) Resolves this framebuffer to the provided advanced framebuffer as the target.voidresolveToFbo(int id, int width, int height, int mask, int filtering) Resolves this framebuffer to the framebuffer with the specified id as the target.voidresolveToRenderTarget(com.mojang.blaze3d.pipeline.RenderTarget target, int mask, int filtering) Resolves this framebuffer to the provided minecraft framebuffer as the target.Methods inherited from class foundry.veil.impl.client.render.wrapper.VanillaAdvancedFboWrapper
bind, bindDraw, clear, clear, create, drawBuffers, free, getClearMask, getColorAttachment, getColorAttachments, getDebugLabel, getDepthAttachment, getDrawBuffers, getHeight, getId, getWidth, hasColorAttachment, hasDepthAttachment, hasStencilAttachment, resetDrawBuffers, toRenderTargetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface foundry.veil.api.client.render.framebuffer.AdvancedFbo
bindRead, clear, clear, clear, clear, getColorRenderAttachment, getColorTextureAttachment, getDepthRenderAttachment, getDepthTextureAttachment, isColorRenderAttachment, isColorTextureAttachment, isDepthMutableTextureAttachment, isDepthRenderAttachment, isDepthTextureAttachment, isMutableColorTextureAttachment, resolveToAdvancedFbo, resolveToRenderTarget, resolveToScreen, resolveToScreen, setColorAttachmentTexture, setColorAttachmentTexture, setDepthAttachmentTexture, setDepthAttachmentTextureMethods inherited from interface org.lwjgl.system.NativeResource
close
-
Constructor Details
-
LegacyVanillaAdvancedFboWrapper
public LegacyVanillaAdvancedFboWrapper(Supplier<com.mojang.blaze3d.pipeline.RenderTarget> renderTargetSupplier)
-
-
Method Details
-
clear
public void clear(float red, float green, float blue, float alpha, float depth, int buffers, int... clearBuffers) Description copied from interface:AdvancedFboClears the specified buffers.- Parameters:
red- The red clear valuegreen- The green clear valueblue- The blue clear valuealpha- The alpha clear valuedepth- The depth to clear the framebuffer withbuffers- The buffers to clearclearBuffers- The color buffers to clear
-
resolveToFbo
public void resolveToFbo(int id, int width, int height, int mask, int filtering) Description copied from interface:AdvancedFboResolves this framebuffer to the framebuffer with the specified id as the target.- Parameters:
id- The id of the framebuffer to copy intowidth- The width of the framebuffer being copied intoheight- The height of the framebuffer being copied intomask- The buffers to copy into the provided framebufferfiltering- The filter to use if this framebuffer and the provided framebuffer are different sizes
-
resolveToAdvancedFbo
Description copied from interface:AdvancedFboResolves this framebuffer to the provided advanced framebuffer as the target.- Parameters:
target- The target framebuffer to copy data intomask- The buffers to copy into the provided framebufferfiltering- 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:AdvancedFboResolves this framebuffer to the provided minecraft framebuffer as the target.- Parameters:
target- The target framebuffer to copy data intomask- The buffers to copy into the provided framebufferfiltering- The filter to use if this framebuffer and the provided framebuffer are different sizes
-