OpenGL ES landscape image orientation

Discussion in 'iOS Programming' started by gummyavenger, Sep 19, 2008.

  1. gummyavenger macrumors newbie

    Joined:
    Sep 19, 2008
    #1
    Forgive me if this is a dumb question... I've been tinkering with the iPhone SDK since it was announced, but I'm just now starting out with OpenGL ES.

    Is the best way to create an OpenGL ES landscape application to rotate your images 90 degrees to the right in Photoshop and then treat x coordinates as y, and vice versa? It seems like there should be a better way, but maybe not.

    Thanks!
     
  2. gummyavenger thread starter macrumors newbie

    Joined:
    Sep 19, 2008
    #2
    Let me clarify a little more... say I have an image in Photoshop that will be used as the background for my app. My image is 480x320. Should I rotate the image to 320x480 in Photoshop before I use it in XCode?
     
  3. gummyavenger thread starter macrumors newbie

    Joined:
    Sep 19, 2008
    #3
    Nobody here has created a landscape OpenGL ES app?
     
  4. mlady macrumors member

    Joined:
    Sep 18, 2008
    #4
    Explain bit more, I think nobody understands what are you actually talking about.
     
  5. gummyavenger thread starter macrumors newbie

    Joined:
    Sep 19, 2008
    #5
    I'm trying to make a 2D iPhone game that you play with the iPhone turned sideways. The dimensions of my game are 480 pixels wide by 320 pixels tall. The normal upright resolution of the iPhone is 320 pixels wide by 480 pixels tall. None of the official OpenGL ES examples are in landscape view like my app will be, so I haven't seen the source code of any landscape OpenGL ES app.

    As I'm designing the graphics for the game, I'm designing them in a 480x320 window, as the player would see them. However, since the iPhone is normally held upright at 320x480, my question is if it is best to rotate my graphics in Photoshop after I've designed them, or to rotate them as the game loads them... or maybe there's a better way?
     
  6. mlady macrumors member

    Joined:
    Sep 18, 2008
    #6
    Best is rotate it first in Photoshop.
     
  7. gummyavenger thread starter macrumors newbie

    Joined:
    Sep 19, 2008
    #7
    Thanks :)
     

Share This Page