QOpenGLContextGroup 類

QOpenGLContextGroup 類錶示共享 OpenGL 資源的一組上下文。 更多...

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

該類在 Qt 5.0 引入。

公共函數

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