Mailing Lists: Apple Mailing Lists

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

Re: Creating a QCRenderer from a QCComposition



I am trying to create a QCRenderer with a QCComposition object like this

QCRenderer *renderer = [[QCRenderer alloc] initWithComposition:composition colorSpace:NULL];

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


How about CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB)?

Doesn't work with initWithComposition in my situation, I use an OpenGL context to render multiples Quartz Composition on my view.

The solution in this case is to use 

- (id) initWithCGLContext:(CGLContextObj)context pixelFormat:(CGLPixelFormatObj)format colorSpace:(CGColorSpaceRef)colorSpace composition:(QCComposition*)composition;

And create the color space with CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB).

But I don't really understand why initWithComposition doesn't work in my situation.

Christophe


--
David Duncan
Apple DTS Quartz and Printing
email@hidden



 _______________________________________________
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

References: 
 >Creating a QCRenderer from a QCComposition (From: Christophe Ducommun <email@hidden>)
 >Re: Creating a QCRenderer from a QCComposition (From: David Duncan <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.