public class FrameBufferObject
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ActiveFBO |
int |
CBhandle |
int |
CBNhandle |
int |
DBhandle |
static int |
defaultSamples |
int |
FBNhandle |
int |
FBOhandle |
java.io.File |
file |
java.lang.String |
format |
javax.media.opengl.GL2 |
gl |
int |
height |
int |
samples |
boolean |
setup |
static int |
SIZE_INT |
int |
width |
int |
x |
int |
y |
Constructor and Description |
---|
FrameBufferObject(int w,
int h,
java.io.File file,
java.lang.String format,
javax.media.opengl.GL2 gl)
Create a framebuffer with the given dimensions
|
FrameBufferObject(int x,
int y,
int w,
int h,
java.io.File file,
java.lang.String format,
javax.media.opengl.GL2 gl)
Create a framebuffer with the given dimensions
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
Once activated() all further rendering will go to the framebuffer object.
|
void |
capture()
Captures an image of the canvas and saves it to the specified file.
|
int |
checkStatus()
Return the error code from the FBO
|
void |
cleanup()
delete the framebufferobject and renderbufferobject
|
void |
deactivate()
Once deactivated all further rendering goes to the screen.
|
static java.lang.String |
framebuffer_status_string(int statcode)
Return a string representing the given fbo status code
|
void |
setupFBO()
Prepare framebuffer for use.
|
public static int ActiveFBO
public static int defaultSamples
public int FBOhandle
public int DBhandle
public int CBhandle
public int FBNhandle
public int CBNhandle
public int x
public int y
public int width
public int height
public static final int SIZE_INT
public javax.media.opengl.GL2 gl
public java.io.File file
public java.lang.String format
public boolean setup
public int samples
public FrameBufferObject(int w, int h, java.io.File file, java.lang.String format, javax.media.opengl.GL2 gl)
public FrameBufferObject(int x, int y, int w, int h, java.io.File file, java.lang.String format, javax.media.opengl.GL2 gl)
public void setupFBO()
public int checkStatus()
public static java.lang.String framebuffer_status_string(int statcode)
public void activate()
FBO.activate(); ..... // draw something here FBO.deactivate();
deactivate()
public void deactivate()
activate()
public void cleanup()
public void capture()