• 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: Initializing NSOpenGLViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initializing NSOpenGLViews


  • Subject: Re: Initializing NSOpenGLViews
  • From: Bruce <email@hidden>
  • Date: Wed, 11 Dec 2002 09:40:48 -0500

> Hello,
>
> I'm initializing an NSOpenGLView by creating a context in
> initWithCoder. No problem so far, but if I set up the observer's
> position there (with gluLookAt and gluPerspective), very hazardous
> things happen. On another hand, if I set up the observer in drawRect,
> no problem. Why is it so ? I wouldn't want to initialize the observer
> everytime I call drawRect.
>
> Any idea ?
>
> hussein

If you're creating your own contexts (rather than using [[self openGLContext]
makeCurrentContext] you have to be sure to [self setOpenGLContext:
myNewContext] and [myNewContext setView:self].
_______________________________________________
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.

  • Prev by Date: Re: mouseMoved and first responder madness
  • Next by Date: RE: buttonType in NSButton
  • Previous by thread: Re: Initializing NSOpenGLViews
  • Next by thread: mouseMoved and first responder madness
  • Index(es):
    • Date
    • Thread