Package com.jogamp.opengl
Interface GLRunnable
-
- All Known Implementing Classes:
GLDrawableUtil.ReshapeGLEventListener
public interface GLRunnableDeclares a one-shot OpenGL command usable for injection via
GLAutoDrawable.invoke(boolean, com.jogamp.opengl.GLRunnable).
GLAutoDrawableexecutes the GLRunnables within it'sdisplay()method after all registeredGLEventListenersdisplay(GLAutoDrawable)methods has been called.The OpenGL context is current while executing the GLRunnable.
run(GLAutoDrawable)shall return true to indicate that the GL [back] framebuffer remains intact by this runnable.
If returning falseGLAutoDrawablewill calldisplay(GLAutoDrawable)of all registeredGLEventListeners once more to reinstate the framebuffer.This might be useful to inject OpenGL commands from an I/O event listener.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanrun(GLAutoDrawable drawable)
-
-
-
Method Detail
-
run
boolean run(GLAutoDrawable drawable)
- Parameters:
drawable- the 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
GLAutoDrawablewill calldisplay(GLAutoDrawable)of all registeredGLEventListeners once more. - See Also:
GLRunnable
-
-