javax.media.opengl
Interface GLRunnable


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.


Method Summary
 boolean run(GLAutoDrawable drawable)
          Initiate one-shot OpenGL commands with a valid current context, processed by GLAutoDrawable.display(), enqueued by GLAutoDrawable.invoke(boolean, GLRunnable).
 

Method Detail

run

boolean run(GLAutoDrawable drawable)
Initiate one-shot OpenGL commands with a valid current context, processed by GLAutoDrawable.display(), enqueued by GLAutoDrawable.invoke(boolean, GLRunnable).

Parameters:
drawable - the associated drawable and current context for this call
Returns:
true if the GL [back] framebuffer remain intact by this runnable, otherwise false. If returning false and hence the impl signals an invalidated back buffer, another GLEventListener.display(GLAutoDrawable) call will be issued.


Copyright 2010 JogAmp Community.