QOpenGLContextGroup 類錶示共享 OpenGL 資源的一組上下文。 更多...
| 頭: |
#include <QOpenGLContextGroup>
|
| CMake: |
find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
|
| qmake: |
QT += gui
|
| 繼承: | 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 在此共享組中的對象。