*** NSRunLoop ignoring exception '-[QCRenderer initWithComposition:colorSpace:]: Argument "colorSpace" does not verify "(CGColorSpaceGetModel(colorSpace) == kCGColorSpaceModelRGB) && (CGColorSpaceGetType(colorSpace) != kCGColorSpaceDeviceRGB)"'

How can I create a Color Space working with my QCRenderer ?

I'm not sure what the official method is, but here's what I've found to work:

extern id QCGetIndexedColorSpace(unsigned int index);

...

[self initWithCGLContext: [context CGLContextObj]
        pixelFormat: [format CGLPixelFormatObj]
        colorSpace: (struct CGColorSpace*)QCGetIndexedColorSpace(7)
        composition: qcc];

--
[ christopher wright ]
[EMAIL PROTECTED]
http://softpixel.com/~cwright/
_______________________________________________
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]

Reply via email to