iOS Reference Library Apple Developer
Search

GLSprite

Last Revision:
Version 1.8, 2009-10-02
Updated for iPhone OS 3.1: Set texture parameters before creating the texture. This will save texture memory and texture loading time. Use CADisplayLink as the preferred method for controlling animation timing, and fall back to NSTimer when running on a pre 3.1 device where CADisplayLink is not available.
(Full Revision History)
Build Requirements:
iPhone SDK 3.1 and later
Runtime Requirements:
iPhone OS 3.1 and later

The GLSprite sample application shows how to create a texture from an image. By looking at the code, you'll learn how to use Core Graphics to create a bitmap context and draw an image into the context. You'll then see how to use OpenGL ES to create a texture from the image data.




Last updated: 2009-10-02

Did this document help you? Yes It's good, but... Not helpful...