Package com.mojang.blaze3d.pipeline
Class RenderTarget
java.lang.Object
com.mojang.blaze3d.pipeline.RenderTarget
- Direct Known Subclasses:
MainTarget,TextureTarget
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate final float[]protected intprotected intintintprivate static final intintprivate static final intfinal booleanfinal booleanintintint -
Constructor Summary
ConstructorsConstructorDescriptionRenderTarget(boolean useDepth) RenderTarget(boolean useDepth, boolean useStencil) -
Method Summary
Modifier and TypeMethodDescriptionvoidbindRead()voidbindWrite(boolean setViewport) voidblitAndBlendToScreen(int width, int height) voidblitToScreen(int width, int height) voidvoidclear()voidcopyDepthFrom(RenderTarget otherTarget) voidcreateBuffers(int width, int height) voidintintvoidresize(int width, int height) voidsetClearColor(float red, float green, float blue, float alpha) voidsetFilterMode(int filterMode) private voidsetFilterMode(int filterMode, boolean force) voidvoid
-
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 useDepth) -
RenderTarget
public RenderTarget(boolean useDepth, boolean useStencil)
-
-
Method Details
-
resize
public void resize(int width, int height) -
destroyBuffers
public void destroyBuffers() -
copyDepthFrom
-
createBuffers
public void createBuffers(int width, int height) -
setFilterMode
public void setFilterMode(int filterMode) -
setFilterMode
private void setFilterMode(int filterMode, boolean force) -
checkStatus
public void checkStatus() -
bindRead
public void bindRead() -
unbindRead
public void unbindRead() -
bindWrite
public void bindWrite(boolean setViewport) -
unbindWrite
public void unbindWrite() -
setClearColor
public void setClearColor(float red, float green, float blue, float alpha) -
blitToScreen
public void blitToScreen(int width, int height) -
blitAndBlendToScreen
public void blitAndBlendToScreen(int width, int height) -
clear
public void clear() -
getColorTextureId
public int getColorTextureId() -
getDepthTextureId
public int getDepthTextureId()
-