Mixing OpenGL and UIKit

Discussion in 'iOS Programming' started by rokpok, Apr 16, 2009.

  1. macrumors newbie

    Joined:
    Apr 16, 2009
    #1
    Hello,

    I have a question about mixing OpenGL graphics and UIImageView in single view. How do you put some OpenGL graphics above the background image?

    Rok
     
  2. thread starter macrumors newbie

    Joined:
    Apr 16, 2009
    #2
    I have managed to accomplish that. But now I cannot get rid of black background sorounding OpenGL view. I have set opaque property to NO, and clear color to glClearColor(0.0f, 0.0f, 0.0f, 0.0f), but it is not working.
     
  3. macrumors 6502

    mccannmarc

    Joined:
    Aug 15, 2008
    Location:
    Manchester, UK
    #3
    Download the source code for Cocos2d for iPhone from Google code and have a read of it. That allows mixing UIKit with its OpenGL view and it does it very nicely
     

Share This Page