QGLXContext Struct
struct QNativeInterface::QGLXContextGLXコンテキストのネイティブインターフェース。さらに...
ヘッダ | #include <QOpenGLContext> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
以来: | Qt 6.0 |
- 継承メンバを含む全メンバのリスト
- QGLXContext はNative Interfaces の一部です。
パブリック関数
int | nativeContext() const |
静的パブリックメンバー
QOpenGLContext * | fromNative(int configBasedContext, QOpenGLContext *shareContext = nullptr) |
QOpenGLContext * | fromNative(int visualBasedContext, void *visualInfo, QOpenGLContext *shareContext = nullptr) |
詳細説明
QOpenGLContext::nativeInterface() からアクセスできます。
メンバー関数ドキュメント
[static]
QOpenGLContext *QGLXContext::fromNative(int configBasedContext, QOpenGLContext *shareContext = nullptr)
FBConfig から作成された GLXContextconfigBasedContext を採用する。
コンテキストは、glXCreateNewContext
関数を使用して、フレームバッファ構成から作成されなければなりません。
作成されたQOpenGLContext shareContext の所有権は呼び出し元に移される。
[static]
QOpenGLContext *QGLXContext::fromNative(int visualBasedContext, void *visualInfo, QOpenGLContext *shareContext = nullptr)
X ビジュアルから作成された GLXContext を採用します。
コンテキストはglXCreateContext
関数を使ってビジュアルから作成されなければなりません。同じビジュアルをvisualInfo 引数のXVisualInfo
構造体へのポインタとして渡さなければなりません。
作成されたQOpenGLContext の所有権は呼び出し元に移ります。
int QGLXContext::nativeContext() const
基礎となる GLXContext を返します。
© 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.