QEGLContext Struct

struct QNativeInterface::QEGLContext

EGL 컨텍스트에 대한 네이티브 인터페이스. 더 보기...

Header: #include <QOpenGLContext>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
이후: Qt 6.0

공용 함수

(since 6.3) virtual EGLConfig config() const = 0
(since 6.3) virtual EGLDisplay display() const = 0
(since 6.5) virtual void invalidateContext() = 0
virtual EGLContext nativeContext() const = 0

정적 공용 멤버

QOpenGLContext *fromNative(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext = nullptr)

상세 설명

QOpenGLContext::nativeInterface()를 통해 액세스합니다.

멤버 함수 문서

[pure virtual, since 6.3] EGLConfig QEGLContext::config() const

하부 EGLContext와 연관된 EGLConfig를 반환합니다.

이 함수는 Qt 6.3에 도입되었습니다.

[pure virtual, since 6.3] EGLDisplay QEGLContext::display() const

하부 EGLContext와 연관된 EGLDisplay를 반환합니다.

이 함수는 Qt 6.3에 도입되었습니다.

[static] QOpenGLContext *QEGLContext::fromNative(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext = nullptr)

EGLContext를 채택합니다 context.

eglCreateContext 에 전달된 것과 동일한 EGLDisplaydisplay 인수로 전달해야 합니다.

생성된 QOpenGLContext shareContext 의 소유권이 호출자에게 이전됩니다.

[pure virtual, since 6.5] void QEGLContext::invalidateContext()

컨텍스트를 유효하지 않은 것으로 표시합니다.

이 컨텍스트가 Qt Quick 시나리오 그래프에서 사용되는 경우, 이 컨텍스트를 파괴하고 새 컨텍스트를 생성하도록 SceneGraph를 트리거합니다.

QPlatformWindow::invalidateSurface()와 마찬가지로 이 함수는 eglfs와 같은 특정 플랫폼에만 영향을 미칠 것으로 예상할 수 있습니다.

이 함수는 Qt 6.5에 도입되었습니다.

QOpenGLContext::isValid() 및 QPlatformWindow::invalidateSurface()도 참조하십시오 .

[pure virtual] EGLContext QEGLContext::nativeContext() const

기본 EGLContext를 반환합니다.

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