RE: OpenGL Examples in Cocoa
RE: OpenGL Examples in Cocoa
- Subject: RE: OpenGL Examples in Cocoa
- From: John Stringham <email@hidden>
- Date: Fri, 8 Jun 2001 09:24:33 -0400
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.
Thanks in advance,
-John S.