CoreVideo101 Error when porting to new Cocoa project
CoreVideo101 Error when porting to new Cocoa project
- Subject: CoreVideo101 Error when porting to new Cocoa project
- From: Travis Kirton <email@hidden>
- Date: Thu, 17 Dec 2009 16:41:15 -0800
Hi,
I'm working with the Core Video frameworks.
I've taken the QTCoreVideo101 example (available from dev.apple) and
modified it slightly (removing some code that I don't need).
Instead of building off of this stripped project, I want to start a new
project and incorporate the code I've adapted.
In XCode I've started a new project, as a cocoa application (i.e.
appdelegate) and copied the headers / files, adapted a new XIB file to
mirror the one available in the tutorial project...
I'm getting a bunch of errors:
error: expected expression before 'CGLContextObj'
error: too few arguments to function 'QTOpenGLTextureContextCreate'
expected expression before 'CGLContextObj'
error: too few arguments to function 'QTOpenGLTextureContextCreate'
error: expected expression before 'GLsizei'
error: too few arguments to function 'glViewport'
based off of this code (which is taken directly from QTCoreVideo101... where
it compiles fine):
// creates a new OpenGL texture context for a specified OpenGL context and
pixel format
QTOpenGLTextureContextCreate(kCFAllocatorDefault,
CGLContextObj([[self openGLContext] CGLContextObj]),
CGLPixelFormatObj([[self pixelFormat]
CGLPixelFormatObj]),
NULL, &textureContext);
Any help would be appreciated.
T
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden