begin to modernize the OpenGL calls. (using QOpenGLFunctions)