Package com.mojang.blaze3d.pipeline
Class RenderTarget
java.lang.Object
com.mojang.blaze3d.pipeline.RenderTarget
- Direct Known Subclasses:
MainTarget
,TextureTarget
-
Field Summary
Modifier and TypeFieldDescriptionprivate static int
private static int
private float[]
protected int
protected int
int
int
private static int
int
private static int
private boolean
boolean
int
int
int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
_bindWrite(boolean p_83962_)
private void
_blitToScreen(int p_83972_, int p_83973_, boolean p_83974_)
private void
_resize(int p_83965_, int p_83966_, boolean p_83967_)
void
bindRead()
void
bindWrite(boolean p_83948_)
void
blitToScreen(int p_83939_, int p_83940_)
void
blitToScreen(int p_83958_, int p_83959_, boolean p_83960_)
void
void
clear(boolean p_83955_)
void
copyDepthFrom(RenderTarget p_83946_)
void
createBuffers(int p_83951_, int p_83952_, boolean p_83953_)
void
void
Attempts to enable 8 bits of stencil buffer on this FrameBuffer.int
int
boolean
Returns wither or not this FBO has been successfully initialized with stencil bits.void
resize(int p_83942_, int p_83943_, boolean p_83944_)
void
setClearColor(float p_83932_, float p_83933_, float p_83934_, float p_83935_)
void
setFilterMode(int p_83937_)
void
void
-
Field Details
-
RED_CHANNEL
private static final int RED_CHANNEL- See Also:
- Constant Field Values
-
GREEN_CHANNEL
private static final int GREEN_CHANNEL- See Also:
- Constant Field Values
-
BLUE_CHANNEL
private static final int BLUE_CHANNEL- See Also:
- Constant Field Values
-
ALPHA_CHANNEL
private static final int ALPHA_CHANNEL- See Also:
- Constant Field Values
-
width
public int width -
height
public int height -
viewWidth
public int viewWidth -
viewHeight
public int viewHeight -
useDepth
public final boolean useDepth -
frameBufferId
public int frameBufferId -
colorTextureId
protected int colorTextureId -
depthBufferId
protected int depthBufferId -
clearChannels
private final float[] clearChannels -
filterMode
public int filterMode -
stencilEnabled
private boolean stencilEnabled
-
-
Constructor Details
-
RenderTarget
public RenderTarget(boolean p_166199_)
-
-
Method Details
-
resize
public void resize(int p_83942_, int p_83943_, boolean p_83944_) -
_resize
private void _resize(int p_83965_, int p_83966_, boolean p_83967_) -
destroyBuffers
public void destroyBuffers() -
copyDepthFrom
-
createBuffers
public void createBuffers(int p_83951_, int p_83952_, boolean p_83953_) -
setFilterMode
public void setFilterMode(int p_83937_) -
checkStatus
public void checkStatus() -
bindRead
public void bindRead() -
unbindRead
public void unbindRead() -
bindWrite
public void bindWrite(boolean p_83948_) -
_bindWrite
private void _bindWrite(boolean p_83962_) -
unbindWrite
public void unbindWrite() -
setClearColor
public void setClearColor(float p_83932_, float p_83933_, float p_83934_, float p_83935_) -
blitToScreen
public void blitToScreen(int p_83939_, int p_83940_) -
blitToScreen
public void blitToScreen(int p_83958_, int p_83959_, boolean p_83960_) -
_blitToScreen
private void _blitToScreen(int p_83972_, int p_83973_, boolean p_83974_) -
clear
public void clear(boolean p_83955_) -
getColorTextureId
public int getColorTextureId() -
getDepthTextureId
public int getDepthTextureId() -
enableStencil
public void enableStencil()Attempts to enable 8 bits of stencil buffer on this FrameBuffer. Modders must call this directly to set things up. This is to prevent the default cause where graphics cards do not support stencil bits. Make sure to call this on the main render thread! -
isStencilEnabled
public boolean isStencilEnabled()Returns wither or not this FBO has been successfully initialized with stencil bits. If not, and a modder wishes it to be, they must call enableStencil.
-