Package net.minecraft.client.gl
Class Framebuffer
java.lang.Object
net.minecraft.client.gl.Framebuffer
@Environment(CLIENT) public class Framebuffer extends Object
-
Field Summary
Fields Modifier and Type Field Description float[]
clearColor
private int
colorAttachment
private int
depthAttachment
int
fbo
int
texFilter
int
textureHeight
int
textureWidth
boolean
useDepthAttachment
int
viewportHeight
int
viewportWidth
-
Constructor Summary
Constructors Constructor Description Framebuffer(int width, int height, boolean useDepth, boolean getError)
-
Method Summary
Modifier and Type Method Description void
beginRead()
void
beginWrite(boolean setViewport)
private void
bind(boolean updateViewport)
void
checkFramebufferStatus()
void
clear(boolean getError)
void
copyDepthFrom(Framebuffer framebuffer)
void
delete()
void
draw(int width, int height)
void
draw(int width, int height, boolean bool)
private void
drawInternal(int width, int height, boolean bool)
void
endRead()
void
endWrite()
int
getColorAttachment()
int
getDepthAttachment()
void
initFbo(int width, int height, boolean getError)
void
resize(int width, int height, boolean getError)
private void
resizeInternal(int width, int height, boolean getError)
void
setClearColor(float r, float g, float b, float a)
void
setTexFilter(int int2)
-
Field Details
-
textureWidth
public int textureWidth -
textureHeight
public int textureHeight -
viewportWidth
public int viewportWidth -
viewportHeight
public int viewportHeight -
useDepthAttachment
public final boolean useDepthAttachment -
fbo
public int fbo -
colorAttachment
private int colorAttachment -
depthAttachment
private int depthAttachment -
clearColor
public final float[] clearColor -
texFilter
public int texFilter
-
-
Constructor Details
-
Framebuffer
public Framebuffer(int width, int height, boolean useDepth, boolean getError)
-
-
Method Details
-
resize
public void resize(int width, int height, boolean getError) -
resizeInternal
private void resizeInternal(int width, int height, boolean getError) -
delete
public void delete() -
copyDepthFrom
-
initFbo
public void initFbo(int width, int height, boolean getError) -
setTexFilter
public void setTexFilter(int int2) -
checkFramebufferStatus
public void checkFramebufferStatus() -
beginRead
public void beginRead() -
endRead
public void endRead() -
beginWrite
public void beginWrite(boolean setViewport) -
bind
private void bind(boolean updateViewport) -
endWrite
public void endWrite() -
setClearColor
public void setClearColor(float r, float g, float b, float a) -
draw
public void draw(int width, int height) -
draw
public void draw(int width, int height, boolean bool) -
drawInternal
private void drawInternal(int width, int height, boolean bool) -
clear
public void clear(boolean getError) -
getColorAttachment
public int getColorAttachment() -
getDepthAttachment
public int getDepthAttachment()
-