Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

OpenGL

macrumors newbie
Original poster
Hi, I'm on page 31 of this tutorial (I downloaded the PDF, in the top-right corner):

http://developer.apple.com/mac/libr...L-MacProgGuide/opengl_intro/opengl_intro.html

I'm stuck because after I followed through on how to create the golden triangle, I don't see anything... zip, zilch, nada. The screen was not cleared to black and the triangle was not drawn. There is just a gray surface of the background. I retraced my steps and am unsure where I went wrong. I tried attaching the zipped up project, but it was too large 2.3 megs (2.1 with .bz2 :-/ .)

Any suggestions why nothing is being drawn and I only see the gray background?
 
What happens if you set a breakpoint at '-(void) drawRect: (NSRect) bounds' and then run the Debugger? Is the breakpoint hit?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.