JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.GLRunnable Interface Reference
Inheritance diagram for com.jogamp.opengl.GLRunnable:
Collaboration diagram for com.jogamp.opengl.GLRunnable:

Public Member Functions

boolean run (GLAutoDrawable drawable)
 

Detailed Description

Declares a one-shot OpenGL command usable for injection via GLAutoDrawable#invoke(boolean, com.jogamp.opengl.GLRunnable).
GLAutoDrawable executes the GLRunnables within it's display() method after all registered GLEventListeners display(GLAutoDrawable) methods has been called.

The OpenGL context is current while executing the GLRunnable.

GLRunnable#run(GLAutoDrawable) shall return true to indicate that the GL [back] framebuffer remains intact by this runnable.
If returning false GLAutoDrawable will call display(GLAutoDrawable) of all registered GLEventListeners once more to reinstate the framebuffer.

This might be useful to inject OpenGL commands from an I/O event listener.

Definition at line 54 of file GLRunnable.java.

Member Function Documentation

◆ run()

boolean com.jogamp.opengl.GLRunnable.run ( GLAutoDrawable  drawable)
Parameters
drawablethe associated drawable and current context for this call
Returns
true if the GL [back] framebuffer remains intact by this runnable, otherwise false. If returning false GLAutoDrawable will call display(GLAutoDrawable) of all registered GLEventListeners once more.
See also
GLRunnable

Implemented in com.jogamp.opengl.util.GLDrawableUtil.ReshapeGLEventListener, and com.jogamp.opengl.test.junit.newt.parenting.GLRunnableDummy.


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