Package com.mojang.blaze3d.pipeline
Class RenderTarget
java.lang.Object
com.mojang.blaze3d.pipeline.RenderTarget
- Direct Known Subclasses:
MainTarget,TextureTarget
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GpuTextureprotected GpuTextureintprotected final Stringprivate static intfinal booleanfinal booleanintintint -
Constructor Summary
ConstructorsConstructorDescriptionRenderTarget(String name, boolean useDepth) RenderTarget(String name, boolean useDepth, boolean useStencil) -
Method Summary
Modifier and TypeMethodDescriptionvoidblitAndBlendToTexture(GpuTexture texture) voidvoidcopyDepthFrom(RenderTarget otherTarget) voidcreateBuffers(int width, int height) voidvoidresize(int width, int height) voidsetFilterMode(FilterMode filterMode) private voidsetFilterMode(FilterMode filterMode, boolean force)
-
Field Details
-
UNNAMED_RENDER_TARGETS
private static int UNNAMED_RENDER_TARGETS -
width
public int width -
height
public int height -
viewWidth
public int viewWidth -
viewHeight
public int viewHeight -
label
-
useDepth
public final boolean useDepth -
useStencil
public final boolean useStencil -
colorTexture
-
depthTexture
-
filterMode
-
-
Constructor Details
-
RenderTarget
-
RenderTarget
-
-
Method Details
-
resize
public void resize(int width, int height) -
destroyBuffers
public void destroyBuffers() -
copyDepthFrom
-
createBuffers
public void createBuffers(int width, int height) -
setFilterMode
-
setFilterMode
-
blitToScreen
public void blitToScreen() -
blitAndBlendToTexture
-
getColorTexture
-
getDepthTexture
-