|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmaspack.render.FrameBufferObject
public class FrameBufferObject
Field Summary | |
---|---|
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 Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
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)
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |