Mailing Lists: Apple Mailing Lists

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

retrieving pixelformat in CGL



Is there a way to retrieve the the pixel format that a certain CGL context uses? I'd like to get the current context, and then use its pixel format to create a new context. ie:

// Get current context
CGLContextObj ctx = CGLGetCurrentContext();

// Get ctx's pixel format
CGLPixelFormatObj ctx_pixel_format =  ???;

// Create new context
CGLContextObj  new_ctx;
CGLCreateContext( ctx_pixel_format, NULL, &new_ctx );

thanks!
-j
_______________________________________________
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


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.