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

Toolkit agnostic GLOffscreenAutoDrawable.FBO tests using the factory model. More...

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

Public Member Functions

void test01 () 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 releaseClass ()
 
static void main (final String args[]) throws IOException
 
- 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 runTestGL (final GLCapabilitiesImmutable caps) throws InterruptedException
 

Detailed Description

Toolkit agnostic GLOffscreenAutoDrawable.FBO tests using the factory model.

The created GLOffscreenAutoDrawable.FBO is being used to run the GLEventListener.

This test simulates shared off-thread GL context / texture usage, where the producer use FBOs and delivers shared textures. The receiver blends the shared textures onscreen. In detail the test consist of:

  • 2 GLOffscreenAutoDrawable.FBO double buffered
    • each with their own GLContext, which is shares the GLWindow one (see below)
    • both run within one FPSAnimator @ 30fps
    • produce a texture
    • notify the onscreen renderer about new textureID (swapping double buffer)
  • 1 onscreen GLWindow
    • shares it's GLContext w/ above FBOs
    • running within one Animator at v-sync
    • uses the shared FBO textures and blends them onscreen

Definition at line 99 of file TestFBOOffThreadSharedContextMix2DemosES2NEWT.java.

Member Function Documentation

◆ main()

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

Definition at line 277 of file TestFBOOffThreadSharedContextMix2DemosES2NEWT.java.

Here is the call graph for this function:

◆ releaseClass()

static void com.jogamp.opengl.test.junit.jogl.acore.TestFBOOffThreadSharedContextMix2DemosES2NEWT.releaseClass ( )
static

◆ runTestGL()

void com.jogamp.opengl.test.junit.jogl.acore.TestFBOOffThreadSharedContextMix2DemosES2NEWT.runTestGL ( final GLCapabilitiesImmutable  caps) throws InterruptedException
protected

Definition at line 110 of file TestFBOOffThreadSharedContextMix2DemosES2NEWT.java.

Here is the call graph for this function:

◆ test01()

void com.jogamp.opengl.test.junit.jogl.acore.TestFBOOffThreadSharedContextMix2DemosES2NEWT.test01 ( ) throws InterruptedException

Definition at line 271 of file TestFBOOffThreadSharedContextMix2DemosES2NEWT.java.

Here is the call graph for this function:

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