OpenGL template application