What are the necessary steps to update an existing OpenGL ES 1.1 based 2D iPhone game to be compatible w/ the iPhone 4's retina display? I'm still using the Texture2D class that came w/ Apple's CrashLanding (download) sample code.
After reading Apple's documentation, watching the WWDC video (session 134 "Optimize Your iPhone App for the Retina Display"), and looking at Cocos2D sample code I'm still confused.
I believe the required steps include:
- passing high-res artwork (w/ "@2x" appended) to
[UIImage imageNamed:@"image.png"]
- changing the "contentScaleFactor" from 1.0 to 2.0 (where?)
- updating the arguments to
glOrthof
to include the contentScaleFactor - adjusting the size of the
glViewport
Please note that I'm relatively new to OpenGL.
Thanks for your help!