Re: Rendering OpenGL in timed loop (CoreVideo).
Re: Rendering OpenGL in timed loop (CoreVideo).
- Subject: Re: Rendering OpenGL in timed loop (CoreVideo).
- From: Michael Ash <email@hidden>
- Date: Sat, 11 Apr 2009 13:13:42 -0400
On Sat, Apr 11, 2009 at 2:20 AM, Brian Bruinewoud <email@hidden> wrote:
> Ok. That "works". I was coming from an NSOpenGLView example where the view
> sets the context before the drawRect is sent.
>
> Any it, doesn't crash/hang/stop now, but it doesn't draw anything, either...
> :(
Does identical code placed in drawRect: (without the context setting
stuff, of course) draw? If so, it's probably a flushing problem. Be
sure to flush your GL context before you exit.
I thought of another possible approach. Since NSOpenGLView tries to
act like a regular NSView, it may be sufficient to wrap your calls in
a lockFocus/unlockFocus pair.
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden