A OpenGL template in Objective C