Bug 25

Summary: Expose swapBuffers(), please
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED FIXED    
Severity: normal CC: dwbrite
Priority: P3    
Version: 1   
Hardware: All   
OS: all   
Type: FEATURE SCM Refs:
Workaround: ---

Description Sven Gothel 2010-03-24 07:45:36 CET


---- Reported by raverboy 2003-07-18 08:57:40 ----

There's need for manually calling swapBuffers() for things like rendering progress 
bars while defining textures or building complex display lists.

As it is now, swapBuffers() is only called after all methods that can legally perform 
opengl calls has returned, which leads to fairly complex work arounds for this non-
issue.



---- Additional Comments From kbr 2004-04-08 12:01:04 ----

*** Issue 38 has been marked as a duplicate of this issue. ***



---- Additional Comments From kbr 2004-04-08 12:08:07 ----

This functionality has been added. The primary reason for doing so was not the
reason submitted, but because some applications need to draw the scene into the
back buffer without displaying it in order to implement picking functionality.
This was inconvenient or impossible to do without manual control over the
swapping of the front and back buffers.

The following three methods have been added to GLDrawable:
  public void setAutoSwapBufferMode(boolean onOrOff);
  public boolean getAutoSwapBufferMode();
  public void swapBuffers();

Tested with the ProceduralTexturePhysics demo. Currently there aren't any JOGL
demos checked in which illustrate the use of these APIs.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:45 EDT  ---

This bug was previously known as _bug_ 25 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=25

Unknown bug field "has_duplicates" encountered while moving bug
   <has_duplicates>
     <bug_id>38</bug_id>
     <who>kbr</who>
     <when>2004-04-08 12:01:04</when>
</has_duplicates>