QEGLContext Struct
struct QNativeInterface::QEGLContextEGLコンテキストのネイティブ・インターフェース。さらに...
ヘッダー | #include <QOpenGLContext> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
以来: | Qt 6.0 |
- 継承メンバを含む全メンバ一覧
- QEGLContext はNative Interfaces の一部です。
パブリック関数
(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)
EGLContextcontext を採用する。
eglCreateContext
に渡されたのと同じEGLDisplay
をdisplay の引数として渡さなければならない。
作成されたQOpenGLContext shareContext の所有権は呼び出し元に移る。
[pure virtual, since 6.5]
void QEGLContext::invalidateContext()
コンテキストを無効としてマークする。
このコンテキストがQt Quick scenegraph によって使用されている場合、これは 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.