public class FrameBufferObject
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
defaultMultiSamples |
int |
height |
int |
numMultiSamples |
int |
width |
int |
x |
int |
y |
Constructor and Description |
---|
FrameBufferObject(int w,
int h)
Create a framebuffer with the given dimensions
|
FrameBufferObject(int w,
int h,
int nsamples) |
FrameBufferObject(int x,
int y,
int w,
int h)
Create a framebuffer with the given dimensions
|
FrameBufferObject(int x,
int y,
int w,
int h,
int nsamples,
boolean gammaCorrection) |
Modifier and Type | Method and Description |
---|---|
void |
activate(com.jogamp.opengl.GL gl)
Once activated() all further rendering will go to the framebuffer object.
|
int |
checkStatus(com.jogamp.opengl.GL gl)
Return the error code from the FBO
|
void |
configure(com.jogamp.opengl.GL gl,
int w,
int h,
int nsamples) |
void |
configure(com.jogamp.opengl.GL gl,
int w,
int h,
int nsamples,
boolean gammaCorrected) |
void |
configure(com.jogamp.opengl.GL gl,
int x,
int y,
int w,
int h,
int nsamples,
boolean gammaCorrected) |
void |
deactivate(com.jogamp.opengl.GL gl)
Once deactivated all further rendering goes to the screen.
|
void |
dispose(com.jogamp.opengl.GL gl)
delete the framebufferobject and renderbufferobject
|
static java.lang.String |
getFramebufferStatus(int statcode)
Return a string representing the given fbo status code
|
int |
getHeight() |
java.nio.ByteBuffer |
getPixels(com.jogamp.opengl.GL gl,
int format) |
int[] |
getPixelsARGB(com.jogamp.opengl.GL gl)
Uses the current GL object to get the RGBA pixels as bytes
and converts them to ARGB pixels as integers.
|
int |
getWidth() |
public static int defaultMultiSamples
public int x
public int y
public int width
public int height
public int numMultiSamples
public FrameBufferObject(int x, int y, int w, int h, int nsamples, boolean gammaCorrection)
public FrameBufferObject(int w, int h)
public FrameBufferObject(int w, int h, int nsamples)
public FrameBufferObject(int x, int y, int w, int h)
public void configure(com.jogamp.opengl.GL gl, int w, int h, int nsamples)
public void configure(com.jogamp.opengl.GL gl, int w, int h, int nsamples, boolean gammaCorrected)
public void configure(com.jogamp.opengl.GL gl, int x, int y, int w, int h, int nsamples, boolean gammaCorrected)
public int checkStatus(com.jogamp.opengl.GL gl)
public static java.lang.String getFramebufferStatus(int statcode)
public void activate(com.jogamp.opengl.GL gl)
FBO.activate(); ..... // draw something here FBO.deactivate();
deactivate(com.jogamp.opengl.GL)
public void deactivate(com.jogamp.opengl.GL gl)
activate(com.jogamp.opengl.GL)
public void dispose(com.jogamp.opengl.GL gl)
public int[] getPixelsARGB(com.jogamp.opengl.GL gl)
gl
- the current GL object.public java.nio.ByteBuffer getPixels(com.jogamp.opengl.GL gl, int format)
public int getWidth()
public int getHeight()