Re: OpenGL Examples in Cocoa
Re: OpenGL Examples in Cocoa
- Subject: Re: OpenGL Examples in Cocoa
- From: Brian Hill <email@hidden>
- Date: Fri, 8 Jun 2001 12:33:44 -0500
On Friday, June 8, 2001, at 08:24 AM, John Stringham wrote:
However - I have one itsy bitsy problem, which I believe Erik may run
into
as well. Although OpenGL rendering works fine in a GLUT created window,
in
an NSOpenGLView Subclass, it refuses to render depth properly. That is,
polygons that are created first are always displayed on top of other
polygons, even with proper calls to glEnable(GL_DEPTH_TEST) and
glDepthFunc(GL_LEQUAL) etc.
Did you set up a depth buffer in the NSOpenGLView Attributes inspector
in InterfaceBuilder? If you don't, that's what it does. (Caveat: I
haven't used the NSOpenGLView much since the Public Beta, where you had
to set the pixel format attributes programatically).
Brian
email@hidden
http://personalpages.tds.net/~brian_hill
___________________________________________________________
"Why? I came into this game for adventure - go anywhere, travel
light, get in, get out, wherever there's trouble, a man alone.
Now they've got the whole country sectioned off and you can't
move without a form. I'm the last of a breed."
-- Archibald "Harry" Tuttle, Rogue HVAC Repairman
___________________________________________________________