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 ().
返回所有 QOpenGLContext 在此共享组中的对象。