diff options
author | Kenneth Russel <[email protected]> | 2004-04-08 19:04:23 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2004-04-08 19:04:23 +0000 |
commit | f90ab644c419486f7894fda3725a9c81de8bb283 (patch) | |
tree | fba6e3c693cbaf620f9be5d0dfb853cf7ae789d5 /src/net/java/games/jogl/GLDrawable.java | |
parent | 0a2874e6d6a69e3f5c8392402ad1d520adf37b23 (diff) |
Fixed Issue 25: Expose swapBuffers(), please
Fixed Issue 31: Make it safe to remove listeners from a GLDrawable while handling an event
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@93 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/jogl/GLDrawable.java')
-rw-r--r-- | src/net/java/games/jogl/GLDrawable.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/net/java/games/jogl/GLDrawable.java b/src/net/java/games/jogl/GLDrawable.java index 26b7b0a06..bfa0c9c26 100644 --- a/src/net/java/games/jogl/GLDrawable.java +++ b/src/net/java/games/jogl/GLDrawable.java @@ -170,6 +170,24 @@ public interface GLDrawable extends ComponentEvents { drawable. Defaults to false. */ public boolean getNoAutoRedrawMode(); + /** Enables or disables automatic buffer swapping for this drawable. + By default this property is set to true; when true, after all + GLEventListeners have been called for a display() event, the + front and back buffers are swapped, displaying the results of + the render. When disabled, the user is responsible for calling + {@link #swapBuffers} manually. */ + public void setAutoSwapBufferMode(boolean onOrOff); + + /** Indicates whether automatic buffer swapping is enabled for this + drawable. See {@link #setAutoBufferSwapMode}. */ + public boolean getAutoSwapBufferMode(); + + /** Swaps the front and back buffers of this drawable. When + automatic buffer swapping is enabled (as is the default), it is + not necessary to call this method and doing so may have + undefined results. */ + public void swapBuffers(); + /** Indicates whether this drawable is capable of fabricating a subordinate offscreen drawable for advanced rendering techniques which require offscreen hardware-accelerated surfaces. */ |