Problems with rendering triangles and textures in OpenGL

Discussion in 'iOS Programming' started by deVillon, May 26, 2009.

  1. deVillon macrumors newbie

    Joined:
    May 26, 2009
    #1
    Hello

    There is a set of wonderful tutorials at
    http://web.me.com/smaurice/AppleCoder/iPhone_OpenGL/Archive.html
    The problem is with tutorial 05. It works correct, but when instead of the "checkerplate.png" the file "romo.png" is loaded( after copying from tutorial 11) then the left blue triangle is not displayed. ( At least at the simulator)

    Is anyone able to explain ?
     
  2. fire.tiger macrumors newbie

    Joined:
    May 22, 2009
    #2
    just give us anything we can catch. Piece of code..or screen.
    if you've just copied it then it should work..
     
  3. deVillon thread starter macrumors newbie

    Joined:
    May 26, 2009
    #3
    This problem has been swiftly responded by Mr. Simon Maurice, the author of the tutorial. It turns out that that texture drawing code must be delimited by
    glEnable( GL_TEXTURE_2D) and glDisable( GL_TEXTURE_2D). The author didn't do it for brevity reasons so it didn't worked with other images that originally intended.
     

Share This Page