Is that code in your NSopenGLView, and are you rendering in drawRect? when is
that actually happening? In init? In awake from nib? You probably want to move
the rendering to drawRect in your NSOpenGLView, but without more details its
hard to know.
On May 29, 2010, at 8:07 PM, Rick Mann wrote:
> I tried my first stab at rendering a simple composition with QCRenderer:
>
> NSOpenGLContext* glCTX = self.outputFrameView.openGLContext;
> if (mQCRenderer == nil)
> {
> NSOpenGLPixelFormat* pixelFormat =
> self.outputFrameView.pixelFormat;
> mQCRenderer = [[QCRenderer alloc] initWithOpenGLContext: glCTX
> pixelFormat: pixelFormat
> file: mCompositionPath];
> }
>
> bool success = [mQCRenderer renderAtTime: 0.0 arguments: nil];
> [glCTX flushBuffer];
>
> But nothing appeared in my GL view. success was true.
>
> Any suggestions? Thanks!
>
> --
> Rick
>
> _______________________________________________
> 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/doktorp%40mac.com
>
> This email sent to [email protected]
_______________________________________________
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]