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

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

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

Public Member Functions

void test01CommonAnimatorSharedOnscreen () throws InterruptedException
 
void test02EachWithAnimatorSharedOnscreen () throws InterruptedException
 
void test11CommonAnimatorSharedOffscreen () throws InterruptedException
 
void test12EachWithAnimatorSharedOffscreen () 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 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

GLWindow runTestGL (final Animator animator, final int x, final int y, final boolean useShared, final boolean vsync) throws InterruptedException
 

Detailed Description

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

This is achieved by creating a master GLContext to an offscreen invisible GLAutoDrawable, which is then shared by the 3 GLContext of the three GLWindow instances.

The original VBO is created by attaching a GearsES2 instance to the master GLAutoDrawable and initializing it.

Above method allows random creation of all GLWindow instances.

One tests uses only one animator, where the GLWindow, GLDrawable and GLContext creation of all 3 GLWindows is sequential.

Another tests uses 3 animator, one for each GLWindow, where the GLWindow, GLDrawable and GLContext creation of all 3 GLWindows is random. This fact benefits from the master GLContext/GLAutoDrawable, since it is guaranteed it exist and is realized at the time of the shared GLWindow creation.

Definition at line 80 of file TestSharedContextVBOES2NEWT1.java.

Member Function Documentation

◆ initClass()

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

Definition at line 88 of file TestSharedContextVBOES2NEWT1.java.

Here is the call graph for this function:

◆ main()

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

Definition at line 320 of file TestSharedContextVBOES2NEWT1.java.

◆ runTestGL()

GLWindow com.jogamp.opengl.test.junit.jogl.acore.TestSharedContextVBOES2NEWT1.runTestGL ( final Animator  animator,
final int  x,
final int  y,
final boolean  useShared,
final boolean  vsync 
) throws InterruptedException
protected

Definition at line 134 of file TestSharedContextVBOES2NEWT1.java.

Here is the call graph for this function:

◆ test01CommonAnimatorSharedOnscreen()

void com.jogamp.opengl.test.junit.jogl.acore.TestSharedContextVBOES2NEWT1.test01CommonAnimatorSharedOnscreen ( ) throws InterruptedException

Definition at line 177 of file TestSharedContextVBOES2NEWT1.java.

Here is the call graph for this function:

◆ test02EachWithAnimatorSharedOnscreen()

void com.jogamp.opengl.test.junit.jogl.acore.TestSharedContextVBOES2NEWT1.test02EachWithAnimatorSharedOnscreen ( ) throws InterruptedException

Definition at line 210 of file TestSharedContextVBOES2NEWT1.java.

Here is the call graph for this function:

◆ test11CommonAnimatorSharedOffscreen()

void com.jogamp.opengl.test.junit.jogl.acore.TestSharedContextVBOES2NEWT1.test11CommonAnimatorSharedOffscreen ( ) throws InterruptedException

Definition at line 248 of file TestSharedContextVBOES2NEWT1.java.

Here is the call graph for this function:

◆ test12EachWithAnimatorSharedOffscreen()

void com.jogamp.opengl.test.junit.jogl.acore.TestSharedContextVBOES2NEWT1.test12EachWithAnimatorSharedOffscreen ( ) throws InterruptedException

Definition at line 281 of file TestSharedContextVBOES2NEWT1.java.

Here is the call graph for this function:

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