public class FrameBuffer extends Dimension implements RenderTarget, Native
| Modifier and Type | Field and Description |
|---|---|
protected List<RenderBuffer> |
colorTargets |
protected RenderBuffer |
depthTarget |
protected int |
id |
static org.slf4j.Logger |
LOGGER |
protected int |
samples |
INVALID_ID| Constructor and Description |
|---|
FrameBuffer(Dimension dimension) |
FrameBuffer(Dimension texture,
int samples) |
| Modifier and Type | Method and Description |
|---|---|
void |
addColorTexture(Texture texture) |
void |
bindAsRenderTarget(DataBinder binder)
Binds the object as render target.
|
void |
clearColorTargets() |
RenderBuffer |
getColorTarget() |
RenderBuffer |
getColorTarget(int i) |
List<RenderBuffer> |
getColorTargets() |
RenderBuffer |
getDepthTarget() |
int |
getID()
Returns the corresponding ID,
-1 indicates, no ID has been set
|
int |
getSamples() |
void |
setColorTarget(Format format) |
void |
setColorTarget(Texture texture) |
void |
setDepthTarget(Format format) |
void |
setDepthTarget(Texture texture) |
void |
setID(int id)
internal use only
|
int |
sizeColorTargets() |
void |
testModify() |
factor2, fromBufferedImage, getHeight, getWidth, setHeight, setWidthpublic static final org.slf4j.Logger LOGGER
protected int id
protected int samples
protected List<RenderBuffer> colorTargets
protected RenderBuffer depthTarget
public FrameBuffer(Dimension texture, int samples)
public FrameBuffer(Dimension dimension)
public void setDepthTarget(Format format)
public void setDepthTarget(Texture texture)
public void setColorTarget(Format format)
public void setColorTarget(Texture texture)
public void addColorTexture(Texture texture)
public void clearColorTargets()
public int sizeColorTargets()
public RenderBuffer getDepthTarget()
public RenderBuffer getColorTarget()
public RenderBuffer getColorTarget(int i)
public List<RenderBuffer> getColorTargets()
public int getSamples()
public int getID()
Nativepublic void testModify()
public void bindAsRenderTarget(DataBinder binder)
bindAsRenderTarget in interface RenderTargetbinder - The binder used to set the objectCopyright © 2014. All rights reserved.