Mailing Lists: Apple Mailing Lists

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

QTOpenGLTextureContextCreate on 10.3 with AGL



Hi,

I'm in the process of replacing a QT->Gworld->GL Texture render path with the QT7 'direct to texture' path. This has gone fine except that I need the code to run on 10.3 as well as 10.4. We render into a carbon window using agl and there are two problems with this:

1, aglGetCGLContext is not available on 10.3, but we get around this by selecting the context in then calling CGLGetCurrentContext. So, no long term problem there.

2, aglGetCGLPixelFormat is also not available on 10.3. However, in this case we don't have a "CGLGetCurrentPixelFormat" so I can't pull the same trick.

Unfortunately we need a CGL pixel format for QTOpenGLTextureContextCreate. I've tried creating a CGL pixel format that is a facsimile of the AGL pixel format we create but this causes QTOpenGLTextureContextCreate to return error -6662 (allocation failed).

It strikes me as obvious that it should be possible to render into a carbon window on 10.3 - The QuickTime Player must do it, for example. Can anyone point me to how I should be getting a CGL pixel format given an AGL context, or (indeed) the window pointer?

Thanks,
Dave


_______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-API mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-api/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.