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

Initializing NSOpenGLViews


  • Subject: Initializing NSOpenGLViews
  • From: Dean Tresner <email@hidden>
  • Date: Tue, 10 Dec 2002 19:50:44 -0500

Hussein,

You should override the -reshape method and put your perspective and viewing related transformations in there. reshape is called after the init and again each time your window gets re-sized, so it's appropriate for things like gluLookAt and particularly gluPerspective which needs to know the current aspect ratio.

Dean
_______________________________________________
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: Initializing NSOpenGLViews
      • From: Jake Repp <email@hidden>
  • Prev by Date: Re: buttonType in NSButton
  • Next by Date: Re: Initializing NSOpenGLViews
  • Previous by thread: Re: Initializing NSOpenGLViews
  • Next by thread: Re: Initializing NSOpenGLViews
  • Index(es):
    • Date
    • Thread