Interface ManagedRenderTarget
- All Known Implementing Classes:
RenderTargetWrapper
@API(status=EXPERIMENTAL,
since="1.4.0")
public interface ManagedRenderTarget
-
Method Summary
Modifier and TypeMethodDescriptionvoidbeginWrite(boolean updateViewport) Begins a write operation on this render target.voidclear()Clears the content of this render target.voidclear(boolean swallowErrors) voidcopyDepthFrom(com.mojang.blaze3d.pipeline.RenderTarget target) Copies the depth texture from another render target to this render target.voiddraw()Draws this render target, scaling to the default render target's width and height.voiddraw(boolean disableBlend) Draws this render target, scaling to the default render target's width and height.voiddraw(int width, int height, boolean disableBlend) @Nullable com.mojang.blaze3d.pipeline.RenderTargetnet.minecraft.client.renderer.RenderTypegetRenderType(net.minecraft.client.renderer.RenderType base) Gets a simpleRenderTypethat is functionally identical tobase, but with a differentRenderStateShard.OutputStateShardthat binds this render target.
-
Method Details
-
getRenderTarget
@Nullable @Nullable com.mojang.blaze3d.pipeline.RenderTarget getRenderTarget() -
beginWrite
void beginWrite(boolean updateViewport) Begins a write operation on this render target.If the operation is successful, every subsequent draw call will write to this render target.
- Parameters:
updateViewport- whether binding this render target should callRenderSystem.viewport(int, int, int, int)
-
copyDepthFrom
void copyDepthFrom(com.mojang.blaze3d.pipeline.RenderTarget target) Copies the depth texture from another render target to this render target.- Parameters:
target- the render target to copy depth from
-
draw
void draw()Draws this render target, scaling to the default render target's width and height. Disables blending by default. -
draw
void draw(boolean disableBlend) Draws this render target, scaling to the default render target's width and height. -
draw
void draw(int width, int height, boolean disableBlend) -
clear
void clear()Clears the content of this render target. -
clear
void clear(boolean swallowErrors) -
getRenderType
net.minecraft.client.renderer.RenderType getRenderType(net.minecraft.client.renderer.RenderType base) Gets a simpleRenderTypethat is functionally identical tobase, but with a differentRenderStateShard.OutputStateShardthat binds this render target.- Parameters:
base- the layer to copy- Returns:
- a render layer using this render target
- See Also:
-