Stuck while following Apple's OpenGL tutorial

Discussion in 'Mac Programming' started by OpenGL, Jan 4, 2010.

  1. OpenGL macrumors newbie

    Joined:
    Jan 4, 2010
    #1
    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?
     
  2. lloyddean macrumors 6502a

    Joined:
    May 10, 2009
    Location:
    Des Moines, WA
    #2
    What happens if you set a breakpoint at '-(void) drawRect: (NSRect) bounds' and then run the Debugger? Is the breakpoint hit?
     

Share This Page