Drawing with Quartz and OpenGL. Chapter 16 of the iOS5 Beginner's Book.