View Full Version : I need to only render outside of a rectangle

07-09-2009, 03:46 PM
I am rendering to a HIViewRef, however, there are normal carbon controls there too. I need NOT to render over the controls. What is the correct way to do this? I've noticed that glScissor does exactly the opposite of what I'd like to do.

There is aglSetInteger with AGL_CLIP_REGION. However when I enable this, I start rendering to the screen's origin instead of the Window's origin. Compositing mode is enabled.

I am basically trying to figure out the best approach here. Please give me your input :)