aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/javax/media/opengl/GLRunnable.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-05-15 17:49:16 +0200
committerSven Gothel <[email protected]>2012-05-15 17:49:16 +0200
commit2d4108fa4cb7cb0ea703e8e86e8a15c26e177eca (patch)
tree22f4e52864fcf7a44ce26c94784bc32ed36b595c /src/jogl/classes/javax/media/opengl/GLRunnable.java
parentf0135d07cfe5d3b4fc192af88ccf90d7db25cfa6 (diff)
Clarify API Doc: GLRunnable and it's GLAutoDrawable::invoke(..)
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/GLRunnable.java')
-rw-r--r--src/jogl/classes/javax/media/opengl/GLRunnable.java25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLRunnable.java b/src/jogl/classes/javax/media/opengl/GLRunnable.java
index 141d07c19..1ae1c9b22 100644
--- a/src/jogl/classes/javax/media/opengl/GLRunnable.java
+++ b/src/jogl/classes/javax/media/opengl/GLRunnable.java
@@ -30,23 +30,28 @@ package javax.media.opengl;
/**
* <p>
- * Declares one-shot OpenGL commands usable for injection into a {@link GLAutoDrawable},<br>
+ * Declares a one-shot OpenGL command usable for injection
* via {@link GLAutoDrawable#invoke(boolean, javax.media.opengl.GLRunnable)}.<br>
- * {@link GLAutoDrawable} executes these commands within it's {@link GLAutoDrawable#display()}
- * method while the OpenGL context is current.<br>
+ * {@link GLAutoDrawable} executes the GLRunnables within it's {@link GLAutoDrawable#display() display()}
+ * method after all registered {@link GLEventListener}s
+ * {@link GLEventListener#display(GLAutoDrawable) display(GLAutoDrawable)}
+ * methods has been called.
+ * </p>
+ * <p>
+ * The OpenGL context is current while executing the GLRunnable.
+ * </p>
* <p>
* This might be useful to inject OpenGL commands from an I/O event listener.
+ * </p>
*/
public interface GLRunnable {
/**
- * Initiate one-shot OpenGL commands with a valid current context,
- * processed by {@link GLAutoDrawable#display()}, enqueued by
- * {@link GLAutoDrawable#invoke(boolean, GLRunnable)}.
- *
* @param drawable the associated drawable and current context for this call
- * @return 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 {@link GLEventListener#display(GLAutoDrawable)} call will be issued.
+ * @return true if the GL [back] framebuffer remains intact by this runnable, otherwise false.
+ * If returning false {@link GLAutoDrawable} will call
+ * {@link GLEventListener#display(GLAutoDrawable) display(GLAutoDrawable)}
+ * of all registered {@link GLEventListener}s once more.
+ * @see GLRunnable
*/
boolean run(GLAutoDrawable drawable);
}