GLGravity

Last Revision:
Version 2.2, 2010-07-06
Upgraded project to build with the iOS 4.0 SDK.
(Full Revision History)
Build Requirements:
iOS 4.0 SDK
Runtime Requirements:
iOS 3.2 or later

The GLGravity sample application demonstrates how to use the UIAccelerometer class in combination with OpenGL rendering. It shows how to extract the gravity vector from the accelerometer values using a basic low-pass filter, and how to build an OpenGL transformation matrix from it.