Implement toggle OpenGL control