QNativeInterface::QEGLContext Struct
EGL 컨텍스트에 대한 네이티브 인터페이스. 더 보기...
| 헤더: | #include <QOpenGLContext> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| 다음부터: | Qt 6.0부터 |
- 상속된 멤버를 포함한 모든 멤버 목록
- QEGLContext는 네이티브 인터페이스의 일부입니다.
공개 함수
| QEGLContext() | |
| QEGLContext(const QNativeInterface::QEGLContext &) | |
| QEGLContext(QNativeInterface::QEGLContext &&) | |
(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 |
| QNativeInterface::QEGLContext & | operator=(QNativeInterface::QEGLContext &&) |
| QNativeInterface::QEGLContext & | operator=(const QNativeInterface::QEGLContext &) |
정적 공용 멤버
| QOpenGLContext * | fromNative(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext = nullptr) |
상세 설명
QOpenGLContext::nativeInterface()를 통해 액세스합니다.
멤버 함수 설명
[constexpr noexcept default] QEGLContext::QEGLContext()
QEGLContext 의 인스턴스를 기본 생성합니다.
[delete] QEGLContext::QEGLContext(const QNativeInterface::QEGLContext &)
QEGLContext 의 인스턴스를 복사 생성합니다. 이 함수는 삭제되었습니다.
[delete] QEGLContext::QEGLContext(QNativeInterface::QEGLContext &&)
QEGLContext 의 인스턴스를 move-construct로 생성합니다. 이 함수는 삭제되었습니다.
[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 에 전달된 것과 동일한 EGLDisplay 를 display 인자로 전달해야 합니다.
생성된 QOpenGLContext shareContext 의 소유권은 호출자에게 이전됩니다.
[pure virtual, since 6.5] void QEGLContext::invalidateContext()
컨텍스트를 유효하지 않은 것으로 표시합니다
이 컨텍스트가 ` Qt Quick ` 씬그래프에 의해 사용되는 경우, 이 호출로 인해 씬그래프가 해당 컨텍스트를 파괴하고 새로운 컨텍스트를 생성하게 됩니다.
QPlatformWindow::invalidateSurface()와 마찬가지로, 이 함수는 eglfs와 같은 특정 플랫폼에서만 효과가 있을 것으로 예상됩니다.
이 함수는 Qt 6.5에서 도입되었습니다.
QOpenGLContext::isValid()도 참조하십시오 .
[pure virtual] EGLContext QEGLContext::nativeContext() const
기본이 되는 EGLContext를 반환합니다.
[delete] QNativeInterface::QEGLContext &QEGLContext::operator=(QNativeInterface::QEGLContext &&)
other 를 이 QEGLContext 인스턴스에 할당합니다. 이 함수는 삭제됩니다.
[delete] QNativeInterface::QEGLContext &QEGLContext::operator=(const QNativeInterface::QEGLContext &)
other 를 이 QEGLContext 인스턴스에 복사-할당합니다. 이 함수는 삭제됩니다.
© 2026 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.