Re: XGetImage() and OpenGL
Re: XGetImage() and OpenGL
- Subject: Re: XGetImage() and OpenGL
- From: Jeremy Huddleston <email@hidden>
- Date: Thu, 2 Oct 2008 19:10:43 -0700
File a bug report at http://xquartz.macorforge.org
--Jeremy
On Oct 2, 2008, at 12:39, McCarty, Mike wrote:
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden