29package com.jogamp.opengl.test.junit.jogl.offscreen;
31import com.jogamp.opengl.*;
33import com.jogamp.opengl.util.GLReadBufferUtil;
56 }
catch (
final Exception e) {
57 throw new RuntimeException(
"can not set debug pipeline", e);
64 }
catch (
final Exception e) {
65 throw new RuntimeException(
"can not set trace pipeline", e);
69 System.out.println(_gl);
75 System.out.println(
"---------------------------");
77 System.out.println(
"---------------------------");
80 public void reshape(
final GLAutoDrawable drawable,
final int x,
final int y,
final int width,
final int height) {
abstract GL setGL(GL gl)
Sets the GL pipeline object for this GLContext.
abstract GLDrawable setGLReadDrawable(GLDrawable read)
Set the read-Drawable for read framebuffer operations.
Factory for pipelining GL instances.
static final GL create(final String pipelineClazzBaseName, final Class<?> reqInterface, final GL downstream, final Object[] additionalArgs)
Creates a pipelined GL instance using the given downstream downstream and optional arguments addition...
void init(final GLAutoDrawable drawable)
Called by the drawable immediately after the OpenGL context is initialized.
ReadBufferBase(final GLDrawable externalRead, final boolean write2Texture)
void display(final GLAutoDrawable drawable)
Called by the drawable to initiate OpenGL rendering by the client.
void reshape(final GLAutoDrawable drawable, final int x, final int y, final int width, final int height)
Called by the drawable during the first repaint after the component has been resized.
void dispose(final GLAutoDrawable drawable)
Notifies the listener to perform the release of all OpenGL resources per GLContext,...
Utility to read out the current FB to TextureData, optionally writing the data back to a texture obje...
void dispose(final GL gl)
boolean readPixels(final GL gl, final boolean mustFlipVertically)
Read the drawable's pixels to TextureData and Texture, if requested at construction.
void glReadBuffer(int mode)
Entry point to C language function: void {@native glReadBuffer}(GLenum mode) Part of GL_ES_VERSION...
A higher-level abstraction than GLDrawable which supplies an event based mechanism (GLEventListener) ...
GL getGL()
Returns the GL pipeline object this GLAutoDrawable uses.
boolean isGL2GL3()
Indicates whether this GL object conforms to a GL2GL3 compatible profile.
GLContext getContext()
Returns the GLContext associated which this GL object.
GL2GL3 getGL2GL3()
Casts this object to the GL2GL3 interface.
An abstraction for an OpenGL rendering target.
Declares events which client code can use to manage OpenGL rendering into a GLAutoDrawable.
int glGetError()
Entry point to C language function: GLenum {@native glGetError}() Part of GL_ES_VERSION_2_0,...
static final int GL_FRONT
GL_ES_VERSION_2_0, GL_VERSION_1_1, GL_VERSION_1_0, GL_VERSION_ES_1_0 Define "GL_FRONT" with expressio...