Re: X11 and OpenGL drawing together in one window
Re: X11 and OpenGL drawing together in one window
- Subject: Re: X11 and OpenGL drawing together in one window
- From: John Harper <email@hidden>
- Date: Wed, 2 Jul 2003 11:16:33 -0700
On Wednesday, July 2, 2003, at 11:08, Robert Cox wrote:
Is this "invisibility of X11 drawing in OpenGL windows" effect due to
the rendering of OpenGL by Aqua, and never the twain shall meet? It
is a little unnerving to try to draw a precise shape with no immediate
visual feedback - not impossible, but trickier.
Yes, it's a known problem. Xlib drawing calls render into the window's
backing store, GL drawing calls render into the accelerated surface
attached to the window. We haven't fixed this yet..
Also, will it be possible to XGetImage an OpenGL drawing someday? On
Linux, this is how we are making animations - XGetImage each new
frame, save it, convert the sequence to MPEG later. Pretty painless
for the user and for the programmer alike. For a sample, see
http://afni.nimh.nih.gov/afni/suma_both_1.mpg .
If/when the drawing bug gets fixed, XGetImage should work as well. Can
you use glReadPixels to work around the problem? (it should be faster
as well)
John
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.