|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
Public Member Functions | |
| boolean | run (GLAutoDrawable drawable) |
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.
| boolean com.jogamp.opengl.GLRunnable.run | ( | GLAutoDrawable | drawable | ) |
| drawable | the associated drawable and current context for this call |
GLAutoDrawable will call display(GLAutoDrawable) of all registered GLEventListeners once more. Implemented in com.jogamp.opengl.util.GLDrawableUtil.ReshapeGLEventListener, and com.jogamp.opengl.test.junit.newt.parenting.GLRunnableDummy.