QOpenGLContextGroup Class
The QOpenGLContextGroup class represents a group of contexts sharing OpenGL resources. \inmodule
QtGui. More...
Header: | #include <QOpenGLContextGroup> |
Inherits: | QObject |
Public Functions
virtual | ~QOpenGLContextGroup() |
QList<QOpenGLContext *> | shares() const |
Static Public Members
QOpenGLContextGroup * | currentContextGroup() |
Detailed Description
\since
5.0
QOpenGLContextGroup is automatically created and managed by QOpenGLContext instances. Its purpose is to identify all the contexts that are sharing resources.
See also QOpenGLContext::shareGroup().
Member Function Documentation
[virtual noexcept]
QOpenGLContextGroup::~QOpenGLContextGroup()
\internal
[static]
QOpenGLContextGroup *QOpenGLContextGroup::currentContextGroup()
Returns the QOpenGLContextGroup corresponding to the current context.
See also QOpenGLContext::currentContext().
QList<QOpenGLContext *> QOpenGLContextGroup::shares() const
Returns all the QOpenGLContext objects in this share group.