The OpenGL ES 2.0 Programming Guide
Porting the Sample Code to the iPhone
The process of porting the sample code from the book to the iPhone highlights some of the unique features of the iPhone. In particular, some of the unique features of the development environment include:
- The use of Objective C
- The process of creating an EGL rendering context using the EAGLContext.
- Detection of device capabilities and creating an OpenGL ES 2.0 context
- The use of a framebuffer object as the primary rendering surface
Once you have created and setup a rendering context, programming with OpenGL ES 2.0 on the iPhone is identical to any other platform. However, there are some unique aspects of the platform that are worth understanding before jumping into the code.