• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: OpenGL Examples in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: SEMI-OT: "Tricks" of the "Trade"
  • Next by Date: Re: SEMI-OT: "Tricks" of the "Trade"
  • Previous by thread: Re: OpenGL Examples in Cocoa
  • Next by thread: Re: OpenGL Examples in Cocoa
  • Index(es):
    • Date
    • Thread