add centerOpenGLWindow method