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 はNative Interfaces の一部です。
パブリック関数
| 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コンストラクタで生成します。この関数は削除されています。
[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 のシーングラフで使用されている場合、この処理によりシーングラフがこのコンテキストを破棄し、新しいコンテキストを作成します。
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.