Get Updates By E-mail 

Article Written By:
Johann Dowa

Nehe OpenGL Tutorial #2 In iPhone OpenGL ES

  •  
  •  
  •  
  •  
  •  

As promised this is the Nehe OpenGL tutorial 2 converted to run onthe iPhone.

You can download my Xcode project file here: Nehe Tutorial #2 Converted To iPhone

Now, I won’t get into the specifics as we move along, but  I will give a breakdown of the steps I took in creating this tutorial.

1. Created an OpenGL ES project in Xcode.
2. Looked through the C++ version of the Nehe code, and placed the draw code into the Xcode project.
3. Added in missing GLU functions by taking them out of the GluES library, and removing any asm calls.
4. Placed the triangle and square vertices into a vertex array.
5. Placed the shapes a little further back to adjust for the iPhone’s  portrait view.

And that’s it! I will get into more details as we move along, and I suggest that you look through all the code, and try to find what’s different.

See you later!

PS. You can check out Jeff Lamarche’s Nehe Tutorial 2 conversion on the Iphone here.  His approach was different from mine, as he recreated it all from the ground up while I used every resource I could find since I’m all about speed of implementation.

Nehe Tutorial #2 In Iphone OpenGL ES

Nehe Tutorial #2 In Iphone OpenGL ES


  •  
  •  
  •  
  •  
  •  

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