Hmm... Only one thing that doesn't quite work - window picking.
Normally when I have a compositing window and I draw stuff (say an
oval or box) into it using CG, any clicks on the clear "alpha space"
are ignored. I normally have to click on solid pixels that I drew
for the OS to call my event handler. But when I render an OpenGL
scene into the window, it seems that clicking anywhere in the window,
even on the invisible, transparent pixels will cause an event and a
drag to occur.
So, is there any way to make that work, or am I going to have to
manually do hit-testing on the geometry in the scene to kick out the
invalid window clicks?
Thanks,
-Brian
On May 23, 2007, at 4:01 AM, Adam Zegelin wrote:
Call aglSetInteger with AGL_SURFACE_OPACITY and a value of 0 to
make the AGL surface transparent. Then clear the window backbuffer
using CG to make the window transparent.
__________________________________________________________
Brian Greenstone
President & CEO email@hidden
Pangea Software, Inc. http://www.pangeasoft.net
12405 John Simpson Ct. voice/fax: (512)266-9991
Austin, TX 78732
__________________________________________________________
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden