views:

105

answers:

1

Starting with the iPhone 3G S, OpenGL ES 2.0 has been supported on iOS devices. However, I can't find much in the way of sample code for OpenGL ES 2.0 aimed at the iPhone, or even some generic examples. Where can I find sample code or tutorials about OpenGL ES 2.0 for the iPhone?

+1  A: 

For a very basic example, the OpenGL ES Application template in the latest iOS SDK creates a basic application with two rendering paths, one OpenGL ES 1.1-based, the other using OpenGL ES 2.0.

Aside from that, I recommend watching the WWDC 2010 video session 417 - "OpenGL ES Shading and Advanced Rendering" for some examples of OpenGL ES 2.0 shaders on the iPhone. The book "iPhone 3D Programming" by Philip Rideout walks you through the use of OpenGL ES 2.0 shaders in an iPhone application.

Finally, I believe that "OpenGL Shading Language" by Randi Rost is still considered the definitive reference for the shaders used in OpenGL ES 2.0.

Brad Larson
"OpenGL Shading Language" is good one, since viewed online
shakthi