single/double buffer in GLX mode

single/double buffer in GLX mode

Post by Wihem Kherra » Tue, 27 Jun 1995 04:00:00



Hello,

I'm using the GLX mode with GL and Motif.
My GLXconfig is defined like that:
    {GLX_NORMAL, GLX_DOUBLE, TRUE},
...

The problem is that I need to pass from double buffer to single buffer mode
during the
application.
The simple call to doublebuffer(); or singlebuffer(); doesn't work.
It did work in GL by calling gconfig(); (not allowed in mixed model).

Any idea ? Thanks in advance.

w.

 
 
 

single/double buffer in GLX mode

Post by Dave Shreine » Tue, 27 Jun 1995 04:00:00


Create two widgets, one singlebuffered, and the other double. Manage and
GLXwinset() the doublebuffered window whenever you need smooth animation,
and when you need a higher color quality window, unmanage that one, manage
and GLXwinset() the singlebuffered one.

Thanx,
Dave

  ---------------------------------------------------------------------------


   Silicon Graphics, Inc.                                (301) 384-6916

   Boldly going where no one has before ... and stumbling the entire way.