QOpenGLContextGroup Class
QOpenGLContextGroup 类表示一组共享 OpenGL 资源的上下文。更多
Header: | #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 由QOpenGLContext 实例自动创建和管理。其目的是识别所有共享资源的上下文。
另请参阅 QOpenGLContext::shareGroup().
成员函数文档
[static]
QOpenGLContextGroup *QOpenGLContextGroup::currentContextGroup()
返回与当前上下文对应的QOpenGLContextGroup 。
另请参阅 QOpenGLContext::currentContext().
QList<QOpenGLContext *> QOpenGLContextGroup::shares() const
返回该共享组中的所有QOpenGLContext 对象。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.