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: HIView and OpenGL



On Friday, May 30, 2003, at 20:41 Europe/Paris, Michael Wolfinbarger wrote:

I guess I still have the problem of the parent bounds changing out from under me. If I'm not completely contained within the parent, and I want to be clipped to it, then I'll need to change my buffer rect whenever my parent's bounds are changed. I'll get a kEventControlBoundsChanged if I'm resized, but not if my parent is resized. The only way I see to handle that is to install kEventControlBoundsChanged handlers all the way up the view hierarchy.

Michael, quite frankly for the whole duration of the thread I've been thinking -- "why isn't his view completely contained in its parent?". Having said this...

As of Jaguar, your buffer rect will effectively own *any* drawing performed on that area of your window. The Window Manager will not allow anything else through: neither your view, nor your parent, nor your parent's parent, can draw in it with the Appearance Manager, CoreGraphics, Quickdraw, etc. The only (legal) way to change the pixels contained in that surface is an aglSwapBuffers call on your context.

Given that the "containment rule" does not apply to your view hierarchy, I understand your point about the BoundsChanged handler not being invoked at the appropriate times; however, I still contend that if your handler is called when it should be, you will *not* need to use AGL_CLIP_REGION *unless* you have children on top of your context -- simply because no one else could draw in that surface.

Dario
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: HIView and OpenGL (From: Michael Wolfinbarger <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.