From f90ab644c419486f7894fda3725a9c81de8bb283 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 8 Apr 2004 19:04:23 +0000 Subject: 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 --- src/net/java/games/jogl/GLDrawable.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/net/java/games/jogl/GLDrawable.java') 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. */ -- cgit v1.2.3