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

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.GLContextDrawableSwitchBase1:
Collaboration diagram for com.jogamp.opengl.test.junit.jogl.acore.glels.GLContextDrawableSwitchBase1:

Classes

enum  GLADType
 

Static Public Member Functions

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 ()
 

Protected Member Functions

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

static boolean validateOnOffscreenLayer (final GLADType gladType1, final GLADType gladType2)
 

Additional Inherited Members

- 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...
 

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.

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

Definition at line 73 of file GLContextDrawableSwitchBase1.java.

Member Function Documentation

◆ initClass()

static void com.jogamp.opengl.test.junit.jogl.acore.glels.GLContextDrawableSwitchBase1.initClass ( )
static

Definition at line 90 of file GLContextDrawableSwitchBase1.java.

◆ testGLADOneLifecycle()

void com.jogamp.opengl.test.junit.jogl.acore.glels.GLContextDrawableSwitchBase1.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
protected

Definition at line 156 of file GLContextDrawableSwitchBase1.java.

Here is the call graph for this function:

◆ validateOnOffscreenLayer()

static boolean com.jogamp.opengl.test.junit.jogl.acore.glels.GLContextDrawableSwitchBase1.validateOnOffscreenLayer ( final GLADType  gladType1,
final GLADType  gladType2 
)
staticprotected

Definition at line 139 of file GLContextDrawableSwitchBase1.java.


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