Mailing Lists: Apple Mailing Lists

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

Passing NULL to initWithCGLContext for colorSpace throws error:



hello,

in the documentation for initWithCGLContext states that one can pass NULL for the colorSpace param so it defaults to the proper RGB colorspace: (from the QCRenderer class reference dev docs)
\
ColorSpace
A Quartz color space object. This must be an RGB color space. Pass NULL to use the default RGB color space. For more information on Quartz color spaces, see Quartz 2D Programming Guide.


The code below throws the error (also, patch vs composition? )

[QCRenderer initWithCGLContext:pixelFormat:colorSpace:patch:]: Argument "colorSpace" does not verify "(CGColorSpaceGetModel(colorSpace) == kCGColorSpaceModelRGB) && (CGColorSpaceGetType(colorSpace) != kCGColorSpaceDeviceRGB)"

(v001GLContext is an NSOpenGLContext)


v001Effects1Renderer =[[QCRenderer alloc] initWithCGLContext:[v001GLContext CGLContextObj] pixelFormat:[v001GLPixelFormat CGLPixelFormatObj] colorSpace: NULL composition: [v001CompositionTestLoader compositionAtIndex:0] ];

Am I doing something wrong, are the docs wrong, or? I am trying to pass a cached QCComposition object. Thanks - more curious if this is a documentation issue, just reporting/asking for completeness sakes.

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