QNativeInterface::QGLXContext Struct
Native Schnittstelle zu einem GLX-Kontext. Mehr...
| Header: | #include <QOpenGLContext> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Seit: | Qt 6.0 |
- Liste aller Mitglieder, einschließlich geerbter Mitglieder
- QGLXContext ist Teil von „Native Interfaces“.
Öffentliche Funktionen
| QGLXContext() | |
| QGLXContext(const QNativeInterface::QGLXContext &) | |
| QGLXContext(QNativeInterface::QGLXContext &&) | |
| int | nativeContext() const |
| QNativeInterface::QGLXContext & | operator=(QNativeInterface::QGLXContext &&) |
| QNativeInterface::QGLXContext & | operator=(const QNativeInterface::QGLXContext &) |
Statische öffentliche Mitglieder
| QOpenGLContext * | fromNative(int configBasedContext, QOpenGLContext *shareContext = nullptr) |
| QOpenGLContext * | fromNative(int visualBasedContext, void *visualInfo, QOpenGLContext *shareContext = nullptr) |
Ausführliche Beschreibung
Zugriff über ` QOpenGLContext::nativeInterface()`
Dokumentation der Mitgliedsfunktionen
[constexpr noexcept default] QGLXContext::QGLXContext()
Erstellt standardmäßig eine Instanz von ` QGLXContext`.
[delete] QGLXContext::QGLXContext(const QNativeInterface::QGLXContext &)
Erstellt eine Kopie einer Instanz von ` QGLXContext`. Diese Funktion wird gelöscht.
[delete] QGLXContext::QGLXContext(QNativeInterface::QGLXContext &&)
Erstellt eine Instanz von ` QGLXContext`. Diese Funktion wurde gelöscht.
[static] QOpenGLContext *QGLXContext::fromNative(int configBasedContext, QOpenGLContext *shareContext = nullptr)
Übernimmt einen aus einer FBConfig erstellten GLXContext configBasedContext.
Der Kontext muss anhand einer Framebuffer-Konfiguration mithilfe der Funktion ` glXCreateNewContext ` erstellt werden.
Die Eigentumsrechte an dem erstellten „ QOpenGLContext “ shareContext werden auf den Aufrufer übertragen.
[static] QOpenGLContext *QGLXContext::fromNative(int visualBasedContext, void *visualInfo, QOpenGLContext *shareContext = nullptr)
Übernimmt einen GLXContext, der aus einem X-Visual erstellt wurde.
Der Kontext muss mithilfe der Funktion „ glXCreateContext “ aus einem Visual erstellt worden sein. Dasselbe Visual muss als Zeiger auf eine „ XVisualInfo “-Struktur im Argument „ visualInfo “ übergeben werden.
Die Eigentumsrechte an dem erstellten ` QOpenGLContext ` werden auf den Aufrufer übertragen.
int QGLXContext::nativeContext() const
Gibt den zugrunde liegenden GLXContext zurück.
[delete] QNativeInterface::QGLXContext &QGLXContext::operator=(QNativeInterface::QGLXContext &&)
Weist „ other “ dieser „ QGLXContext “-Instanz zu. Diese Funktion wird gelöscht.
[delete] QNativeInterface::QGLXContext &QGLXContext::operator=(const QNativeInterface::QGLXContext &)
other Weist dieser „ QGLXContext “-Instanz „ “ per Kopierzuweisung zu. Diese Funktion wird gelöscht.
© 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.