This program is designed specifically for reading 24bit Bitmap, other bitmap varying the bits per pixel needs altering. The structure's detailed information can be found at Wikipedia's BMP file format entry.
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