diff options
author | Sven Gothel <[email protected]> | 2001-09-26 00:21:57 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2001-09-26 00:21:57 +0000 |
commit | 744ceb659539753d571dc46aebb601d4a2f0b401 (patch) | |
tree | d5dbaac2714b00532c51d8f35bcd6ec0927d235c /gl4java/drawable | |
parent | 26883064d71736ccd96a6f1d9b19b85b66f5ac7c (diff) |
bugfix: auto context switch
Diffstat (limited to 'gl4java/drawable')
-rw-r--r-- | gl4java/drawable/GLDrawable.java | 12 | ||||
-rw-r--r-- | gl4java/drawable/GLEventListener.java | 2 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gl4java/drawable/GLDrawable.java b/gl4java/drawable/GLDrawable.java index 55c1311..2ec134c 100644 --- a/gl4java/drawable/GLDrawable.java +++ b/gl4java/drawable/GLDrawable.java @@ -34,7 +34,7 @@ public interface GLDrawable *
* This is the rendering-method called by
* e.g.: {@link gl4java.awt.GLCanvas#display} or by
- * {@link gl4java.GLThread#run}.
+ * {@link gl4java.GLRunnable#run}.
*
* <p>
* The default implementation of display() sends
@@ -86,6 +86,16 @@ public interface GLDrawable public void display();
/**
+ * this function can be called to force a repaint
+ *
+ * Repaints this component.
+ *
+ * This method causes a call to this component's update method
+ * as soon as possible.
+ */
+ public void repaint();
+
+ /**
* the components listener's should be implemented also !
* since JDK 1.1
*/
diff --git a/gl4java/drawable/GLEventListener.java b/gl4java/drawable/GLEventListener.java index feb388d..4ca0ba2 100644 --- a/gl4java/drawable/GLEventListener.java +++ b/gl4java/drawable/GLEventListener.java @@ -86,7 +86,7 @@ public interface GLEventListener call to {@link gl4java.GLFunc#glViewport}; note that for
convenience the component has already called {@link
gl4java.GLContext#gljResize}(width, height) and {@link
- gl4java.GLFunc.glViewport}(0, 0, width, height) when this method
+ gl4java.GLFunc#glViewport}(0, 0, width, height) when this method
is called, so the client may not have to do anything in this
method. At the time this method is called, the drawable has
already made its associated GLContext current by a call to
|