• 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: subclassed NSOpenGLView won't draw in subclassed NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: subclassed NSOpenGLView won't draw in subclassed NSView


  • Subject: Re: subclassed NSOpenGLView won't draw in subclassed NSView
  • From: Carl Gieringer <email@hidden>
  • Date: Mon, 7 Feb 2005 16:46:08 -0900

Thanks for these tips; I hadn't known about glSwapAPPLE() and I am using double buffering. (and MacFOH -> very nice GUI!)

I am almost certain that this isn't an OpenGL error per se, but maybe an error related to subclassing NSOpenGLView and then placing it in a subclassed NSView: before I had the labeled axes, I only instantiated HistoryGraphView (the NSOpenGLView subclass that now doesn't display unless I constantly resize the window) in the nib and it drew itself correctly then.

On Feb 7, 2005, at 7:40, Shaun Wexler wrote:

The Cocoa way:

	[[aHistoryGraphView openGLContext] flushBuffer];

Instead, if you're double-buffered, call glSwapAPPLE() after drawRect: returns, or if single-buffered call glFlush().
--
Shaun Wexler
MacFOH
http://www.macfoh.com

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: subclassed NSOpenGLView won't draw in subclassed NSView
      • From: Carl Gieringer <email@hidden>
    • Re: subclassed NSOpenGLView won't draw in subclassed NSView
      • From: Henry Maddocks <email@hidden>
References: 
 >subclassed NSOpenGLView won't draw in subclassed NSView (From: Carl Gieringer <email@hidden>)
 >Re: subclassed NSOpenGLView won't draw in subclassed NSView (From: Shaun Wexler <email@hidden>)

  • Prev by Date: Re: subclassed NSOpenGLView won't draw in subclassed NSView
  • Next by Date: Re: subclassed NSOpenGLView won't draw in subclassed NSView
  • Previous by thread: Re: subclassed NSOpenGLView won't draw in subclassed NSView
  • Next by thread: Re: subclassed NSOpenGLView won't draw in subclassed NSView
  • Index(es):
    • Date
    • Thread