Version 1.2, 2010-06-29
Added CFBundleIconFiles in Info.plist.
(Full Revision History)
iOS 4.0 SDK
iPhone OS 3.2 or later
The GLImageProcessing sample application demonstrates how to implement simple image processing filters (Brightness, Contrast, Saturation, Hue rotation, Sharpness) using OpenGL ES1.1. The sample also shows how to create simple procedural button icons using CoreGraphics.
By looking at the code you'll see how to set up an OpenGL ES view and use it for applying a filter to a texture. The application creates a texture from an image loaded from disk. It pads the image to a power of two, if required by the GPU.
The Debug configuration in the Xcode project defines DEBUG and ASSERT preprocessor macros, to enable additional error checking.
To use this sample, open it in Xcode and click Build and Go. Use the slider to control the current filter. Only a single filter is applied at a time.