Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using OpenGL with a compositing window



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

This email sent to email@hidden
References: 
 >Using OpenGL with a compositing window (From: Brian Greenstone <email@hidden>)
 >Re: Using OpenGL with a compositing window (From: Adam Zegelin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.