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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]