switching from double buffered to single buffered mode

switching from double buffered to single buffered mode

Post by Hans » Thu, 08 May 1997 04:00:00



Does anyone know of a gracefull way to switch back and forth between
single and double buffered mode in a OpenGl drawing widget, i.e. a
widget created by
glwidget = XtVaCreateManagedWidget ( "glwidget",
                                     glwMDrawingAreaWidgetClass,
                                     GLwNdoublebuffer, True, ...);?

Thanks, Hans

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

Scientific Volume Imaging BV,
J. Geradtsweg 181,
1222 PS Hilversum, The Netherlands.

URL: http://www.svi.nl/

tel: (0)35-6859405 or (0)653-345445
fax: (0)35-6837971

 
 
 

switching from double buffered to single buffered mode

Post by Christopher Walke » Thu, 08 May 1997 04:00:00



> Does anyone know of a gracefull way to switch back and forth between
> single and double buffered mode in a OpenGl drawing widget, i.e. a
> widget created by
> glwidget = XtVaCreateManagedWidget ( "glwidget",
>                                      glwMDrawingAreaWidgetClass,
>                                      GLwNdoublebuffer, True, ...);?

It's not possible.  X just doesn't work that way (sadly).  You have to
create two widgets and then map one or the other in the same location
to switch back and forth.

--