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

Sharing the VBO of 3 GearsES2 instances, each in their own AWT GLJPanel. More...

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

Public Member Functions

void test01SyncedOneAnimator () throws InterruptedException, InvocationTargetException
 
void test02AsyncEachAnimator () throws InterruptedException, InvocationTargetException
 
- 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 initClass ()
 
static void main (final String args[])
 
- 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

GLJPanel createGLJPanel (final Frame frame, final int x, final int y, final GearsES2 gears) throws InterruptedException
 

Detailed Description

Sharing the VBO of 3 GearsES2 instances, each in their own AWT GLJPanel.

This is achieved by using the 1st GLJPanel as the master and using the build-in blocking mechanism to postpone creation of the 2nd and 3rd GLJPanel until the 1st GLJPanel 's GLContext becomes created.

Above method allows random creation of the 1st GLJPanel, which triggers creation of the dependent other GLJPanel sharing it's GLContext.

Definition at line 66 of file TestSharedContextVBOES2AWT3b.java.

Member Function Documentation

◆ createGLJPanel()

GLJPanel com.jogamp.opengl.test.junit.jogl.acore.TestSharedContextVBOES2AWT3b.createGLJPanel ( final Frame  frame,
final int  x,
final int  y,
final GearsES2  gears 
) throws InterruptedException
protected

Definition at line 85 of file TestSharedContextVBOES2AWT3b.java.

Here is the call graph for this function:

◆ initClass()

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

Definition at line 72 of file TestSharedContextVBOES2AWT3b.java.

Here is the call graph for this function:

◆ main()

static void com.jogamp.opengl.test.junit.jogl.acore.TestSharedContextVBOES2AWT3b.main ( final String  args[])
static

Definition at line 314 of file TestSharedContextVBOES2AWT3b.java.

◆ test01SyncedOneAnimator()

void com.jogamp.opengl.test.junit.jogl.acore.TestSharedContextVBOES2AWT3b.test01SyncedOneAnimator ( ) throws InterruptedException, InvocationTargetException

Definition at line 97 of file TestSharedContextVBOES2AWT3b.java.

Here is the call graph for this function:

◆ test02AsyncEachAnimator()

void com.jogamp.opengl.test.junit.jogl.acore.TestSharedContextVBOES2AWT3b.test02AsyncEachAnimator ( ) throws InterruptedException, InvocationTargetException

Definition at line 197 of file TestSharedContextVBOES2AWT3b.java.

Here is the call graph for this function:

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