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