Re: NSOpenGLView in NSSplitView, redraw problems
Re: NSOpenGLView in NSSplitView, redraw problems
- Subject: Re: NSOpenGLView in NSSplitView, redraw problems
- From: Umed Zokirov <email@hidden>
- Date: Fri, 20 Jun 2003 14:33:51 -0700
Arek
Look at Apple's sample called GLChildWindowDemo
http://developer.apple.com/samplecode/Sample_Code/Graphics_3D/
GLChildWindowDemo.htm. It is a known issue with Split Views that you
might have garbage. So the workaround is to use a Carbon trick to delay
window update so that flushes will be simultaneous between views. Right
now your non-Open GL view is being updated whether your OpenGL view is
ready to flush or not. So solution is to delay window update until
OpenGL view is ready to flush. OpenGL view gets notified when SplitView
is resized by way of spiltViewWillResizeSubviews notification. Look
into DemoWindow and DemoGLView classes for more info.
Umed
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.