Hi,
I'm studying OpenGL Context management in OSX, and I'm trying to apply
Context management in Quartz composer. I have a couple of questions about:
In a Cocoa application, we create an OGL context using NSOpenGLContext
class, and we can choose our pixel format for the frame buffer using
NSOpenGLPixelFormat.
How it is managed in Quartz composer? I mean, in a custom patch the execute
method receives a QCPlugincontext as input that we manage with a
CGLContextObj object:
- (BOOL) execute:(id<QCPlugInContext>)context
atTime:(NSTimeInterval)time withArguments:(NSDictionary*)arguments{
CGLContextObj cgl_ctx = [context CGLContextObj];
[...]
}
Now we can use QCPlugInContext methods to know info about the context (as
explained
here<http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/QCPlugInContext_Protocol/QCPlugInContext_Protocol.pdf>).
But.. how can I set its attributes?
Is the context we received in the execution method customizable? Can I
customize PixelFormat attributes or rendering bounds?
Thank you,
Luke
_______________________________________________
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]