29package com.jogamp.opengl.test.junit.util;
32import com.jogamp.opengl.*;
33import com.jogamp.opengl.JoglVersion;
38 final boolean withGLAvailability;
39 final boolean withCapabilities;
40 final boolean withExtensions;
42 public DumpGLInfo(
final String header,
final boolean withGLAvailability,
final boolean withCapabilities,
final boolean withExtensions) {
44 this.withGLAvailability = withGLAvailability;
45 this.withCapabilities = withCapabilities;
46 this.withExtensions = withExtensions;
50 this.withGLAvailability =
true;
51 this.withCapabilities =
true;
52 this.withExtensions =
true;
57 if(
null != header ) {
58 System.err.println(header);
60 System.err.println(
JoglVersion.
getGLInfo(gl,
null, withGLAvailability, withCapabilities, withExtensions));
65 public void reshape(
final GLAutoDrawable drawable,
final int x,
final int y,
final int width,
final int height) {
static StringBuilder getGLInfo(final GL gl, final StringBuilder sb)
void dispose(final GLAutoDrawable drawable)
Notifies the listener to perform the release of all OpenGL resources per GLContext,...
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.
DumpGLInfo(final String header, final boolean withGLAvailability, final boolean withCapabilities, final boolean withExtensions)
void init(final GLAutoDrawable drawable)
Called by the drawable immediately after the OpenGL context is initialized.
A higher-level abstraction than GLDrawable which supplies an event based mechanism (GLEventListener) ...
GL getGL()
Returns the GL pipeline object this GLAutoDrawable uses.
GLDrawable getDelegatedDrawable()
If the implementation uses delegation, return the delegated GLDrawable instance, otherwise return thi...
GLCapabilitiesImmutable getChosenGLCapabilities()
Fetches the GLCapabilitiesImmutable corresponding to the chosen OpenGL capabilities (pixel format / v...
Declares events which client code can use to manage OpenGL rendering into a GLAutoDrawable.