javax.media.opengl

## Interface GLRunnable

-     public interface GLRunnable

  Declares a one-shot OpenGL command usable for injection via `GLAutoDrawable.invoke(boolean, javax.media.opengl.GLRunnable)`.
  `GLAutoDrawable` executes the GLRunnables within it's `display()` method after all registered `GLEventListener`s `display(GLAutoDrawable)` methods has been called.

  The OpenGL context is current while executing the GLRunnable.

  This might be useful to inject OpenGL commands from an I/O event listener.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `run(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 `GLAutoDrawable` will call `display(GLAutoDrawable)` of all registered `GLEventListener`s once more.
      See Also:
        `GLRunnable`

Copyright 2010 JogAmp Community.