JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.test.junit.jogl.acore.glels.TestGLContextDrawableSwitch12AWT Class Reference

Test re-association of GLContext/GLDrawables, here GLContext's survival of GLDrawable destruction and reuse w/ new or recreated GLDrawable. More...

Inheritance diagram for com.jogamp.opengl.test.junit.jogl.acore.glels.TestGLContextDrawableSwitch12AWT:
Collaboration diagram for com.jogamp.opengl.test.junit.jogl.acore.glels.TestGLContextDrawableSwitch12AWT:

Public Member Functions

void test01GLCanvasOnscreenGL2ES2 () throws InterruptedException
 
void test02GLCanvasOnscreenGLES2 () throws InterruptedException
 
void test11GLCanvasOffscreenGL2ES2 () throws InterruptedException
 
void test12GLCanvasOffscreenGLES2 () throws InterruptedException
 
- Public Member Functions inherited from com.jogamp.opengl.test.junit.util.UITestCase
int getMaxTestNameLen ()
 
String getSnapshotFilename (final int sn, String postSNDetail, final GLCapabilitiesImmutable caps, final int width, final int height, final boolean sinkHasAlpha, String fileSuffix, final String destPath)
 
void snapshot (final int sn, final String postSNDetail, final GL gl, final GLReadBufferUtil readBufferUtil, final String fileSuffix, final String destPath)
 Takes a snapshot of the drawable's current front framebuffer. More...
 

Static Public Member Functions

static void main (final String args[]) throws IOException
 
- Static Public Member Functions inherited from com.jogamp.opengl.test.junit.jogl.acore.glels.GLContextDrawableSwitchBase1
static void initClass ()
 
- Static Public Member Functions inherited from com.jogamp.opengl.test.junit.util.UITestCase
static void setResetXRandRIfX11AfterClass ()
 
static int resetXRandRIfX11 ()
 Iterates through all outputs and sets the preferred mode and normal rotation using RandR 1.3. More...
 
static int processCommand (final String[] cmdline, final OutputStream outstream, final StringBuilder outstring, final String outPrefix)
 
static final void oneTimeSetUpUITest ()
 
static final void oneTimeTearDownUITest ()
 

Additional Inherited Members

- Protected Member Functions inherited from com.jogamp.opengl.test.junit.jogl.acore.glels.GLContextDrawableSwitchBase1
void testGLADOneLifecycle (final Screen screen, final GLCapabilities caps, final GLADType gladType, final int width, final int height, final GLEventListenerCounter glelTracker, final SnapshotGLEventListener snapshotGLEventListener, final GLEventListenerState glelsIn, final GLEventListenerState glelsOut[], final GLAnimatorControl animator) throws InterruptedException
 
- Static Protected Member Functions inherited from com.jogamp.opengl.test.junit.jogl.acore.glels.GLContextDrawableSwitchBase1
static boolean validateOnOffscreenLayer (final GLADType gladType1, final GLADType gladType2)
 

Detailed Description

Test re-association of GLContext/GLDrawables, here GLContext's survival of GLDrawable destruction and reuse w/ new or recreated GLDrawable.

Test utilizes GLEventListenerState for preserving the GLAutoDrawable state, i.e. GLContext, all GLEventListener and the GLAnimatorControl association.

This test is using JOGL's AWT GLCanvas

See Bug 665 - https://jogamp.org/bugzilla/show_bug.cgi?id=665.

Definition at line 64 of file TestGLContextDrawableSwitch12AWT.java.

Member Function Documentation

◆ main()

static void com.jogamp.opengl.test.junit.jogl.acore.glels.TestGLContextDrawableSwitch12AWT.main ( final String  args[]) throws IOException
static

Definition at line 132 of file TestGLContextDrawableSwitch12AWT.java.

◆ test01GLCanvasOnscreenGL2ES2()

void com.jogamp.opengl.test.junit.jogl.acore.glels.TestGLContextDrawableSwitch12AWT.test01GLCanvasOnscreenGL2ES2 ( ) throws InterruptedException

Definition at line 67 of file TestGLContextDrawableSwitch12AWT.java.

◆ test02GLCanvasOnscreenGLES2()

void com.jogamp.opengl.test.junit.jogl.acore.glels.TestGLContextDrawableSwitch12AWT.test02GLCanvasOnscreenGLES2 ( ) throws InterruptedException

Definition at line 74 of file TestGLContextDrawableSwitch12AWT.java.

◆ test11GLCanvasOffscreenGL2ES2()

void com.jogamp.opengl.test.junit.jogl.acore.glels.TestGLContextDrawableSwitch12AWT.test11GLCanvasOffscreenGL2ES2 ( ) throws InterruptedException

Definition at line 81 of file TestGLContextDrawableSwitch12AWT.java.

◆ test12GLCanvasOffscreenGLES2()

void com.jogamp.opengl.test.junit.jogl.acore.glels.TestGLContextDrawableSwitch12AWT.test12GLCanvasOffscreenGLES2 ( ) throws InterruptedException

Definition at line 88 of file TestGLContextDrawableSwitch12AWT.java.


The documentation for this class was generated from the following file: