RE: XGetImage() and OpenGL
RE: XGetImage() and OpenGL
- Subject: RE: XGetImage() and OpenGL
- From: "McCarty, Mike" <email@hidden>
- Date: Fri, 3 Oct 2008 15:12:26 -0500
- Acceptlanguage: en-US
- Thread-topic: XGetImage() and OpenGL
Done.
http://xquartz.macosforge.org/trac/ticket/171
-----Original Message-----
From: Jeremy Huddleston [mailto:email@hidden]
Sent: Thursday, October 02, 2008 9:11 PM
To: McCarty, Mike
Cc: email@hidden
Subject: Re: XGetImage() and OpenGL
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden