JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.test.junit.util.GLTestUtil Class Reference
Inheritance diagram for com.jogamp.opengl.test.junit.util.GLTestUtil:
Collaboration diagram for com.jogamp.opengl.test.junit.util.GLTestUtil:

Static Public Member Functions

static boolean waitForContextCreated (final GLAutoDrawable autoDrawable, final boolean created, final Runnable waitAction) throws InterruptedException
 
static boolean waitForSize (final GLDrawable drawable, final int width, final int height, final Runnable waitAction) throws InterruptedException
 
static boolean waitForRealized (final GLAutoDrawable glad, final boolean realized, final Runnable waitAction) throws InterruptedException
 
- Static Public Member Functions inherited from com.jogamp.opengl.test.junit.util.TestUtil
static boolean waitForFocus (final FocusEventCountAdapter gain, final FocusEventCountAdapter lost, final Runnable waitAction) throws InterruptedException
 
static boolean waitUntilClosed (final boolean willClose, final TestUtil.WindowClosingListener closingListener, final Runnable waitAction) throws InterruptedException
 Wait until the window is closing within TIME_OUT. More...
 

Additional Inherited Members

- Static Public Attributes inherited from com.jogamp.opengl.test.junit.util.TestUtil
static final int RETRY_NUMBER = 5
 
static final int TIME_OUT = 2000
 
static final int POLL_DIVIDER = 20
 
static final int TIME_SLICE = TIME_OUT / POLL_DIVIDER
 

Detailed Description

Definition at line 36 of file GLTestUtil.java.

Member Function Documentation

◆ waitForContextCreated()

static boolean com.jogamp.opengl.test.junit.util.GLTestUtil.waitForContextCreated ( final GLAutoDrawable  autoDrawable,
final boolean  created,
final Runnable  waitAction 
) throws InterruptedException
static
Parameters
waitActionif not null, Runnable shall wait TIME_SLICE ms, if appropriate
Returns
True if the GLContext becomes created or not within TIME_OUT

Definition at line 42 of file GLTestUtil.java.

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

◆ waitForRealized()

static boolean com.jogamp.opengl.test.junit.util.GLTestUtil.waitForRealized ( final GLAutoDrawable  glad,
final boolean  realized,
final Runnable  waitAction 
) throws InterruptedException
static
Parameters
gladthe GLAutoDrawable to wait for
realizedtrue if waiting for component to become realized, otherwise false
waitActionif not null, Runnable shall wait TIME_SLICE ms, if appropriate
Returns
True if the Component becomes realized (not displayable, native invalid) within TIME_OUT
Exceptions
InterruptedException

Definition at line 91 of file GLTestUtil.java.

Here is the caller graph for this function:

◆ waitForSize()

static boolean com.jogamp.opengl.test.junit.util.GLTestUtil.waitForSize ( final GLDrawable  drawable,
final int  width,
final int  height,
final Runnable  waitAction 
) throws InterruptedException
static
Parameters
waitActionif not null, Runnable shall wait TIME_SLICE ms, if appropriate
Returns
True if the GLDrawable receives the expected surface size within TIME_OUT

Definition at line 72 of file GLTestUtil.java.

Here is the caller graph for this function:

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