• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOpenGLView in NSSplitView, redraw problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOpenGLView in NSSplitView, redraw problems


  • Subject: Re: NSOpenGLView in NSSplitView, redraw problems
  • From: arekkusu <email@hidden>
  • Date: Fri, 20 Jun 2003 14:12:48 -0700

On Friday, June 20, 2003, at 01:29 PM, Umed Zokirov wrote:
> Have you tried calling glFlush() in your OpenGL view instead of
> flushBuffer ?


Hi, thank you for responding.

I just tried this-- if I replace [ctx flushbuffer] with glFlush() then
the view is never swapped and I can't see my content. The garbage
(backing store) stays there forever after I drag the divider.

If I both glFlush and [ctx flushbuffer], there is no change. I still
see the garbage for a brief time before the view is redrawn.



The behavior looks like:

1) drag divider
2) the non-GL content in the second splitview pane, and the divider
itself, are drawn. my GL context is also resized to fit the new
divider. (reshape is called.)
3) content from 2) is flushed by the window manager. at this point,
there is garbage visible in the GL view.
4) my GL view is drawn. (this may take anywhere from 1/60 sec to
several seconds depending how complex my view is.)



Since all of the subview panels are marked dirty right after 1), I
would expect 2) and 4) to both happen before 3). But 4) does not?
Somehow it is marked dirty but not redrawn in the next window manager
flush!


Explanations, workarounds, please!
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSOpenGLView in NSSplitView, redraw problems
      • From: Brent Gulanowski <email@hidden>
    • Re: NSOpenGLView in NSSplitView, redraw problems
      • From: Umed Zokirov <email@hidden>
  • Prev by Date: PDF Password information?
  • Next by Date: Re: Advice sought for properties editor
  • Previous by thread: NSOpenGLView in NSSplitView, redraw problems
  • Next by thread: Re: NSOpenGLView in NSSplitView, redraw problems
  • Index(es):
    • Date
    • Thread