GLGravity
| Last Revision: | |
| 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.
© 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-07-06)