public class GLFrameCapture
extends java.lang.Object
Constructor and Description |
---|
GLFrameCapture(int w,
int h,
int nsamples,
boolean gammaCorrected,
java.io.File file,
java.lang.String format) |
GLFrameCapture(int x,
int y,
int w,
int h,
int nsamples,
boolean gammaCorrected,
java.io.File file,
java.lang.String format) |
Modifier and Type | Method and Description |
---|---|
void |
activateFBO(com.jogamp.opengl.GL2GL3 gl) |
void |
capture(com.jogamp.opengl.GL2GL3 gl)
Captures an image of the canvas and saves it to the specified file.
|
void |
deactivateFBO(com.jogamp.opengl.GL2GL3 gl) |
void |
dispose(com.jogamp.opengl.GL2GL3 gl) |
FrameBufferObject |
getFBO() |
void |
lock()
Don't allow two threads (or same thread twice) locking this object
|
void |
reconfigure(com.jogamp.opengl.GL2GL3 gl,
int w,
int h,
int nsamples,
boolean gammaCorrection,
java.io.File file,
java.lang.String format) |
void |
reconfigure(com.jogamp.opengl.GL2GL3 gl,
int x,
int y,
int w,
int h,
int nsamples,
boolean gammaCorrection,
java.io.File file,
java.lang.String format) |
void |
unlock() |
void |
waitForCompletion() |
public GLFrameCapture(int w, int h, int nsamples, boolean gammaCorrected, java.io.File file, java.lang.String format)
public GLFrameCapture(int x, int y, int w, int h, int nsamples, boolean gammaCorrected, java.io.File file, java.lang.String format)
public FrameBufferObject getFBO()
public void lock()
public void unlock()
public void reconfigure(com.jogamp.opengl.GL2GL3 gl, int w, int h, int nsamples, boolean gammaCorrection, java.io.File file, java.lang.String format)
public void reconfigure(com.jogamp.opengl.GL2GL3 gl, int x, int y, int w, int h, int nsamples, boolean gammaCorrection, java.io.File file, java.lang.String format)
public void activateFBO(com.jogamp.opengl.GL2GL3 gl)
public void deactivateFBO(com.jogamp.opengl.GL2GL3 gl)
public void capture(com.jogamp.opengl.GL2GL3 gl)
public void waitForCompletion()
public void dispose(com.jogamp.opengl.GL2GL3 gl)