Converting OpenGL Code to Iphone OpenGL ES

If you’ve worked with OpenGL in the past, or have been looking at tutorials for the regular OpenGL online such as the Nehe tutorials, and any of the game engines, you will immediately run into problems getting the code running on the Iphone. The reason for that is that many of the redundant functions in the OpenGL library have been removed in OpenGL ES in order to reduce space and cater to the lowest common denominator.

Since going through and translating as much OpenGL code as I could to OpenGL ES in order to learn the library I’ve found many other great resources for learning OpenGL ES so you don’t need to limit yourself to the Nehe tutorials or Red and blue books.

One of the major problems I found was that the Glu library is missing in OpenGL ES, fortunately Michael Gorchak has begun work on a GluES library which includes much of the missing funcitonality also in the Cocos2D framework you can find implementations of gluLookAt and gluPerspective functions in the Glu module.

Next I will upload a working implementation of the first Nehe library on the Iphone so stay tuned.

Getting started with iPhone and iPad development, and looking for a straightforward guide to get you started with Objective-C fast as possible?
Click here to check out a great straightforward no-nonsense guide to getting started with iPhone development as fast as possible.

Share and Enjoy:
  • RSS
  • Twitter
  • Facebook
  • DZone
  • HackerNews
  • del.icio.us
  • FriendFeed

Related Posts

blog comments powered by Disqus