Re: XForms: flickering images

Steve Lamont (spl@szechuan.ucsd.edu)
Sun, 18 Apr 99 15:00:12 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> How do I turn double buffering on for a pixmap or canvas? Or are you
> talking about a glcanvas? I thought using Mesa would be a little too much
> overhead for displaying a simple 2d image (or series of images).

A Pixmap object may be double buffered by calling the function
fl_set_object_dblbuffer().

In a Canvas object you need to handle all buffering yourself, either
by one of the Xlib functions, such as XCopyArea(), or indirectly through
an API such as Mesa3D.

Actually, Mesa3D or OpenGL may be more useful than you think, even if
they do add some amount of overhead, in that you can do useful things
such as resize an image without writing a lot of extra code yourself.

spl

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/