public interface GLRunnable
Declares one-shot OpenGL commands usable for injection into a GLAutoDrawable
,
via GLAutoDrawable.invoke(boolean, javax.media.opengl.GLRunnable)
.
GLAutoDrawable
executes these commands within it's GLAutoDrawable.display()
method while the OpenGL context is current.
This might be useful to inject OpenGL commands from an I/O event listener.
Modifier and Type | Method and Description |
---|---|
boolean |
run(GLAutoDrawable drawable)
Initiate one-shot OpenGL commands with a valid current context,
processed by
GLAutoDrawable.display() , enqueued by
GLAutoDrawable.invoke(boolean, GLRunnable) . |
boolean run(GLAutoDrawable drawable)
GLAutoDrawable.display()
, enqueued by
GLAutoDrawable.invoke(boolean, GLRunnable)
.drawable
- the associated drawable and current context for this callGLEventListener.display(GLAutoDrawable)
call will be issued.Copyright 2010 JogAmp Community.