bool create()
Attempts to create the OpenGL context with the current configuration.
bool makeCurrent(QSurface *surface)
Makes the context current in the current thread, against the given surface.
static QOpenGLContext * currentContext()
Returns the last context which called makeCurrent in the current thread, or \nullptr,...
void doneCurrent()
Convenience function for calling makeCurrent with a 0 surface.
QOpenGLFunctions * functions() const
Get the QOpenGLFunctions instance for this context.
void swapBuffers(QSurface *surface)
Swap the back and front buffers of surface.