Jump to content
  • Advertisement
Sign in to follow this  
TColby

Setting up iPhone for OpenGL ES 2.0 in landscape rotation

This topic is 2636 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

I have written an App and it was completed and is in the App store and is glorious! It uses OpenGL ES 1.1 in landscape mode for 2D rendering.

So my problem is that I am starting a new App with this App as it's basis but I would like to use the nice features and shader capabilities of OpenGL ES 2.0.

However I cannot seem to get it working correctly. I was wondering if there are any tutorials or examples that could be given for setting up an Orthographic view in OpenGL ES 2.0 for iPhone?

If not I could possibly post code and screenshots and such and ask what I'm doing wrong here. :)


Thanks!

Share this post


Link to post
Share on other sites
Advertisement
For the basic setup, you get a (somewhat) nice template in the SDK.

Only thing you have to change is how you calculate the projection matrix, to make it orthographic.

Then start reading up on OpenGLES 2.0 (which is quite different from the fixed function GLES1.1)

You have to do a lot more "yourself" in GLES2, like handle your matrixes, no helper functions like glPushMatrix/glMatrixMode/glTranslate etc.

In a way, its actually a lot less complex, but possibly requiring a bit better understanding of linear algebra.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!