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: Sean Ahern <email@hidden>
- Date: Wed, 2 Jul 2003 11:18:11 -0700
Robert Cox wrote:
> We have an brain surface visualization program that uses OpenGL to
> render the surfaces. The user can draw a region-of-interest (ROI) on
> the projected surface. During the mouse movement part of the drawing,
> the program just draws (with XDrawLines) over the user's trace. When
> the user releases the mouse button, then the surface is re-rendered
> with the ROI properly shaded, colored, etc. This dual method is for
> speed - we can't render the surface fast enough to keep up with mouse
> movements (about 300,000 triangles - takes about 0.25 s to redraw on my
> iMac, 0.20 on my PowerBook).
Have you given any thought to using OpenGL to do the line drawing,
rather than X11? If it's true that X11 and GLX don't play well together
on Apple's X11.app, you can probably just do one successfully.
Another thing to look into, though I don't know whether it's supported
with Apple's X11.app, is overlay planes.
> Also, will it be possible to XGetImage an OpenGL drawing someday?
Would it not be better to do a glReadPixels call to get the results of an
OpenGL rendering?
-Sean
__
email@hidden
925-422-1648
_______________________________________________
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.