QOpenGLContextGroup 类

QOpenGLContextGroup 类表示共享 OpenGL 资源的一组上下文。 更多...

头: #include <QOpenGLContextGroup>
CMake: find_package(Qt6 COMPONENTS Gui REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Since: Qt 5.0
继承: QObject

公共函数

QList<QOpenGLContext *> shares () const

静态公共成员

QOpenGLContextGroup * currentContextGroup ()

详细描述

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 在此共享组中的对象。