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)
          Called by the drawable to initiate one-shot OpenGL commands by the client, like GLEventListener.display(GLAutoDrawable).
 

Method Detail

run

boolean run(GLAutoDrawable drawable)
Called by the drawable to initiate one-shot OpenGL commands by the client, like GLEventListener.display(GLAutoDrawable).

Parameters:
drawable - the associated drawable the implementation shall use
Returns:
false if impl invalidates the back buffers, hence GLAutoDrawable.display() will issue another GLEventListener.display(GLAutoDrawable) call. Otherwise true.


Copyright 2010 JogAmp Community.