QOpenGLContextGroup Class

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은 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.