@Environment(value=CLIENT) public class Framebuffer extends Object
Modifier and Type | Field and Description |
---|---|
float[] |
clearColor |
private int |
colorAttachment |
private int |
depthAttachment |
int |
fbo |
int |
texFilter |
int |
textureHeight |
int |
textureWidth |
boolean |
useDepthAttachment |
int |
viewportHeight |
int |
viewportWidth |
Constructor and Description |
---|
Framebuffer(int width,
int height,
boolean useDepth,
boolean getError) |
Modifier and Type | Method and 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) |
public int textureWidth
public int textureHeight
public int viewportWidth
public int viewportHeight
public final boolean useDepthAttachment
public int fbo
private int colorAttachment
private int depthAttachment
public final float[] clearColor
public int texFilter
public Framebuffer(int width, int height, boolean useDepth, boolean getError)
public void resize(int width, int height, boolean getError)
private void resizeInternal(int width, int height, boolean getError)
public void delete()
public void copyDepthFrom(Framebuffer framebuffer)
public void initFbo(int width, int height, boolean getError)
public void setTexFilter(int int2)
public void checkFramebufferStatus()
public void beginRead()
public void endRead()
public void beginWrite(boolean setViewport)
private void bind(boolean updateViewport)
public void endWrite()
public void setClearColor(float r, float g, float b, float a)
public void draw(int width, int height)
public void draw(int width, int height, boolean bool)
private void drawInternal(int width, int height, boolean bool)
public void clear(boolean getError)
public int getColorAttachment()
public int getDepthAttachment()