Problems with rendering triangles and textures in OpenGL

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

  1. deVillon macrumors newbie

    May 26, 2009

    There is a set of wonderful tutorials at
    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

    May 22, 2009
    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

    May 26, 2009
    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