Re: OpenGL Examples in Cocoa
Re: OpenGL Examples in Cocoa
- Subject: Re: OpenGL Examples in Cocoa
- From: Stéphane Sudre <email@hidden>
- Date: Fri, 8 Jun 2001 16:32:48 +0200
On vendredi, juin 8, 2001, at 03:24 PM, John Stringham wrote:
Hey all,
First, Erik, great work on the examples. They're much appreciated.
They've
helped me already :)
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.
Very peculiar. Like I said, the exact same polygons and (pretty much)
the
same code work flawlessy under a GLUT window. However this is blatantly
un-Obj-C, so if anyone knows how to get around it I'd appreciate their
input.
Software or Hardware rendering ?