类 RenderTarget
java.lang.Object
com.mojang.blaze3d.pipeline.RenderTarget
- 直接已知子类:
MainTarget
,TextureTarget
-
字段概要
字段修饰符和类型字段说明private static final int
private static final int
private final float[]
protected int
protected int
int
int
private static final int
int
private static final int
private boolean
final boolean
int
int
int
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
bindRead()
void
bindWrite
(boolean p_83948_) void
blitAndBlendToScreen
(int p_364677_, int p_363939_) void
blitToScreen
(int p_83939_, int p_83940_) void
void
clear()
void
copyDepthFrom
(RenderTarget p_83946_) void
createBuffers
(int p_83951_, int p_83952_) 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_) void
setClearColor
(float p_83932_, float p_83933_, float p_83934_, float p_83935_) void
setFilterMode
(int p_83937_) private void
setFilterMode
(int p_334552_, boolean p_333030_) void
void
-
字段详细资料
-
RED_CHANNEL
private static final int RED_CHANNEL- 另请参阅:
-
GREEN_CHANNEL
private static final int GREEN_CHANNEL- 另请参阅:
-
BLUE_CHANNEL
private static final int BLUE_CHANNEL- 另请参阅:
-
ALPHA_CHANNEL
private static final int ALPHA_CHANNEL- 另请参阅:
-
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
-
-
构造器详细资料
-
RenderTarget
public RenderTarget(boolean p_166199_)
-
-
方法详细资料
-
resize
public void resize(int p_83942_, int p_83943_) -
destroyBuffers
public void destroyBuffers() -
copyDepthFrom
-
createBuffers
public void createBuffers(int p_83951_, int p_83952_) -
setFilterMode
public void setFilterMode(int p_83937_) -
setFilterMode
private void setFilterMode(int p_334552_, boolean p_333030_) -
checkStatus
public void checkStatus() -
bindRead
public void bindRead() -
unbindRead
public void unbindRead() -
bindWrite
public void bindWrite(boolean p_83948_) -
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_) -
blitAndBlendToScreen
public void blitAndBlendToScreen(int p_364677_, int p_363939_) -
clear
public void clear() -
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.
-