Initializing NSOpenGLViews
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.