Get Updates By E-mail 

Article Written By:
Johann Dowa

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.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments