I wrote this a while ago. I was planning to write an iPhone game with it, but then realised life is too short to create Yet Another Engine when I could just be using one of the many superior open source alternatives. Perhaps somebody will find it useful.
All the legwork of setting up a 2D OGLES environment, loading and packing images into textures, and drawing these sprites from the textures is done. The texture packing algorithm I used can be found here: