Package com.mojang.blaze3d.pipeline
Class RenderTarget
java.lang.Object
com.mojang.blaze3d.pipeline.RenderTarget
- Direct Known Subclasses:
- MainTarget,- TextureTarget
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate final float[]protected intprotected intintintprivate static final intintprivate static final intprivate booleanfinal booleanintintint
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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_) voidbindRead()voidbindWrite(boolean p_83948_) voidblitToScreen(int p_83939_, int p_83940_) voidblitToScreen(int p_83958_, int p_83959_, boolean p_83960_) voidvoidclear(boolean p_83955_) voidcopyDepthFrom(RenderTarget p_83946_) voidcreateBuffers(int p_83951_, int p_83952_, boolean p_83953_) voidvoidAttempts to enable 8 bits of stencil buffer on this FrameBuffer.intintbooleanReturns wither or not this FBO has been successfully initialized with stencil bits.voidresize(int p_83942_, int p_83943_, boolean p_83944_) voidsetClearColor(float p_83932_, float p_83933_, float p_83934_, float p_83935_) voidsetFilterMode(int p_83937_) voidvoid
- 
Field Details- 
RED_CHANNELprivate static final int RED_CHANNEL- See Also:
 
- 
GREEN_CHANNELprivate static final int GREEN_CHANNEL- See Also:
 
- 
BLUE_CHANNELprivate static final int BLUE_CHANNEL- See Also:
 
- 
ALPHA_CHANNELprivate static final int ALPHA_CHANNEL- See Also:
 
- 
widthpublic int width
- 
heightpublic int height
- 
viewWidthpublic int viewWidth
- 
viewHeightpublic int viewHeight
- 
useDepthpublic final boolean useDepth
- 
frameBufferIdpublic int frameBufferId
- 
colorTextureIdprotected int colorTextureId
- 
depthBufferIdprotected int depthBufferId
- 
clearChannelsprivate final float[] clearChannels
- 
filterModepublic int filterMode
- 
stencilEnabledprivate boolean stencilEnabled
 
- 
- 
Constructor Details- 
RenderTargetpublic RenderTarget(boolean p_166199_) 
 
- 
- 
Method Details- 
resizepublic void resize(int p_83942_, int p_83943_, boolean p_83944_) 
- 
_resizeprivate void _resize(int p_83965_, int p_83966_, boolean p_83967_) 
- 
destroyBufferspublic void destroyBuffers()
- 
copyDepthFrom
- 
createBufferspublic void createBuffers(int p_83951_, int p_83952_, boolean p_83953_) 
- 
setFilterModepublic void setFilterMode(int p_83937_) 
- 
checkStatuspublic void checkStatus()
- 
bindReadpublic void bindRead()
- 
unbindReadpublic void unbindRead()
- 
bindWritepublic void bindWrite(boolean p_83948_) 
- 
_bindWriteprivate void _bindWrite(boolean p_83962_) 
- 
unbindWritepublic void unbindWrite()
- 
setClearColorpublic void setClearColor(float p_83932_, float p_83933_, float p_83934_, float p_83935_) 
- 
blitToScreenpublic void blitToScreen(int p_83939_, int p_83940_) 
- 
blitToScreenpublic void blitToScreen(int p_83958_, int p_83959_, boolean p_83960_) 
- 
_blitToScreenprivate void _blitToScreen(int p_83972_, int p_83973_, boolean p_83974_) 
- 
clearpublic void clear(boolean p_83955_) 
- 
getColorTextureIdpublic int getColorTextureId()
- 
getDepthTextureIdpublic int getDepthTextureId()
- 
enableStencilpublic 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!
- 
isStencilEnabledpublic 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.
 
-