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

Test Vertex Array Object (VAO) Usage and BufferStateTracker. More...

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

Classes

class  GL3VAODemo
 

Public Member Functions

void test01CPUSource () throws GLException, InterruptedException
 
void test02VBOOnly () throws GLException, InterruptedException
 
void test03VBOVAO () throws GLException, InterruptedException
 
void test12CPUSourceAndVBOOnly () throws GLException, InterruptedException
 
void test13CPUSourceAndVBOVAO () throws GLException, InterruptedException
 
void test23VBOOnlyAndVBOVAO () throws GLException, InterruptedException
 
void test88AllModes () throws GLException, 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.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 ()
 

Detailed Description

Test Vertex Array Object (VAO) Usage and BufferStateTracker.

All combinations of CPU_SRC, VBO_ONLY and VBO_VAO are tested and validate the fix for Bug 692, i.e. https://jogamp.org/bugzilla/show_bug.cgi?id=692.

Test order is important!

Note that VAO initialization does unbind the VBO .. since otherwise they are still bound and the CPU_SRC test will fail!
The OpenGL spec does not mention that unbinding a VAO will also unbind the bound VBOs during their setup.
Local tests here on NV and AMD proprietary driver resulted in no ourput image when not unbinding said VBOs before the CPU_SRC tests.
Hence Bug 692 Comment 5 is invalid, i.e. https://jogamp.org/bugzilla/show_bug.cgi?id=692#c5, and we should throw an exception to give users a hint!

Definition at line 80 of file TestBug692GL3VAONEWT.java.

Member Function Documentation

◆ main()

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

Definition at line 434 of file TestBug692GL3VAONEWT.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test01CPUSource()

void com.jogamp.opengl.test.junit.jogl.acore.TestBug692GL3VAONEWT.test01CPUSource ( ) throws GLException, InterruptedException

Definition at line 365 of file TestBug692GL3VAONEWT.java.

Here is the call graph for this function:

◆ test02VBOOnly()

void com.jogamp.opengl.test.junit.jogl.acore.TestBug692GL3VAONEWT.test02VBOOnly ( ) throws GLException, InterruptedException

Definition at line 375 of file TestBug692GL3VAONEWT.java.

Here is the call graph for this function:

◆ test03VBOVAO()

void com.jogamp.opengl.test.junit.jogl.acore.TestBug692GL3VAONEWT.test03VBOVAO ( ) throws GLException, InterruptedException

Definition at line 385 of file TestBug692GL3VAONEWT.java.

Here is the call graph for this function:

◆ test12CPUSourceAndVBOOnly()

void com.jogamp.opengl.test.junit.jogl.acore.TestBug692GL3VAONEWT.test12CPUSourceAndVBOOnly ( ) throws GLException, InterruptedException

Definition at line 395 of file TestBug692GL3VAONEWT.java.

Here is the call graph for this function:

◆ test13CPUSourceAndVBOVAO()

void com.jogamp.opengl.test.junit.jogl.acore.TestBug692GL3VAONEWT.test13CPUSourceAndVBOVAO ( ) throws GLException, InterruptedException

Definition at line 405 of file TestBug692GL3VAONEWT.java.

Here is the call graph for this function:

◆ test23VBOOnlyAndVBOVAO()

void com.jogamp.opengl.test.junit.jogl.acore.TestBug692GL3VAONEWT.test23VBOOnlyAndVBOVAO ( ) throws GLException, InterruptedException

Definition at line 415 of file TestBug692GL3VAONEWT.java.

Here is the call graph for this function:

◆ test88AllModes()

void com.jogamp.opengl.test.junit.jogl.acore.TestBug692GL3VAONEWT.test88AllModes ( ) throws GLException, InterruptedException

Definition at line 425 of file TestBug692GL3VAONEWT.java.

Here is the call graph for this function:

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