XGetImage() and OpenGL
XGetImage() and OpenGL
- Subject: XGetImage() and OpenGL
- From: "McCarty, Mike" <email@hidden>
- Date: Thu, 2 Oct 2008 14:39:02 -0500
- Acceptlanguage: en-US
- Thread-topic: XGetImage() and OpenGL
I'm porting an X11 application to OS X and there's a section of code that uses XGetImage() to get the color of the pixel below the mouse cursor (i.e. XGetImage(dpy,d,x,y,1,1,...) ). This works as expected unless the cursor happens to be over a GL window which, in this application, is very possible (but not guaranteed).
I've looked through the x11-users archive and the only workaround I've seen discussed is to use glReadPixels() which will not work because I don't know which child windows are GL windows and which are not (never mind the problem of finding the glXContext for the window). Is there another (MacOS-specific if necessary) method for getting the pixel color under the mouse?
Thanks,
Mike.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden