Mailing Lists: Apple Mailing Lists

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

OpenGL Contexts in Panther



I'm trying to render graphics into a Quartz context created by CGGLContextCreate, but I have found precious little documentation of its behavior, and no sample code to speak of.

To the routine I am passing the context returned to me by aglCreateContext (a double buffering context OpenGL context whose drawable is set to a window). I pass in the size of my viewport and use NULL for the color space (which is supposed to choose the default RGB color space).

I've tried drawing the Quartz graphics before and after the call to aglSwapBuffer but the Quartz Graphics don't show up.

Are there limitations to the support for GLContexts in Panther? (can they only be used with CGL contexts, full screen contexts, only if the software renderer is being used... something like that?)

If I'm using a double buffered GL context.. should I draw the Quartz graphics before or after the buffers are swapped?




Scott
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartz-dev/email@hidden

This email sent to 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.