QOpenGLContextGroup 类

The QOpenGLContextGroup class represents a group of contexts sharing OpenGL resources. 更多...

头: #include <QOpenGLContextGroup>
qmake: QT += gui
Since: Qt 5.0
继承: QObject

公共函数

QList<QOpenGLContext *> shares () const

静态公共成员

QOpenGLContextGroup * currentContextGroup ()
const QMetaObject staticMetaObject

额外继承成员

详细描述

The QOpenGLContextGroup class represents a group of contexts sharing OpenGL resources.

QOpenGLContextGroup is automatically created and managed by QOpenGLContext instances. Its purpose is to identify all the contexts that are sharing resources.

另请参阅 QOpenGLContext::shareGroup ().

成员函数文档编制

[static] QOpenGLContextGroup *QOpenGLContextGroup:: currentContextGroup ()

返回 QOpenGLContextGroup 对应当前上下文。

另请参阅 QOpenGLContext::currentContext ().

QList < QOpenGLContext *> QOpenGLContextGroup:: shares () const

返回所有 QOpenGLContext 在此共享组中的对象。