QNativeInterface::QEGLContext Struct
Interfaz nativa para un contexto EGL. Más información...
| Encabezado: | #include <QOpenGLContext> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Desde: | Qt 6.0 |
- Lista de todos los miembros, incluidos los heredados
- QEGLContext forma parte de Interfaces nativas.
Funciones públicas
| 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 &) |
Miembros públicos estáticos
| QOpenGLContext * | fromNative(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext = nullptr) |
Descripción detallada
Se accede a través de ` QOpenGLContext::nativeInterface()`.
Documentación de la función miembro
[constexpr noexcept default] QEGLContext::QEGLContext()
Crea por defecto una instancia de ` QEGLContext`.
[delete] QEGLContext::QEGLContext(const QNativeInterface::QEGLContext &)
Crea una instancia de ` QEGLContext` mediante copia. Esta función se ha eliminado.
[delete] QEGLContext::QEGLContext(QNativeInterface::QEGLContext &&)
Crea una instancia de ` QEGLContext`. Esta función se ha eliminado.
[pure virtual, since 6.3] EGLConfig QEGLContext::config() const
Devuelve el EGLConfig asociado al EGLContext subyacente.
Esta función se introdujo en Qt 6.3.
[pure virtual, since 6.3] EGLDisplay QEGLContext::display() const
Devuelve el EGLDisplay asociado al EGLContext subyacente.
Esta función se introdujo en Qt 6.3.
[static] QOpenGLContext *QEGLContext::fromNative(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext = nullptr)
Adopta un EGLContext context.
El mismo ` EGLDisplay ` pasado a ` eglCreateContext ` debe pasarse como argumento ` display `.
La propiedad del QOpenGLContext creado shareContext se transfiere al llamante.
[pure virtual, since 6.5] void QEGLContext::invalidateContext()
Marca el contexto como no válido
Si este contexto es utilizado por el grafo de escena de Qt Quick, esto hará que el SceneGraph destruya este contexto y cree uno nuevo.
Al igual que QPlatformWindow::invalidateSurface(), solo cabe esperar que esta función surta efecto en determinadas plataformas, como eglfs.
Esta función se introdujo en Qt 6.5.
Véase también QOpenGLContext::isValid().
[pure virtual] EGLContext QEGLContext::nativeContext() const
Devuelve el EGLContext subyacente.
[delete] QNativeInterface::QEGLContext &QEGLContext::operator=(QNativeInterface::QEGLContext &&)
Asigna « other » a esta instancia de « QEGLContext ». Esta función se elimina.
[delete] QNativeInterface::QEGLContext &QEGLContext::operator=(const QNativeInterface::QEGLContext &)
Asigna por copia other a esta instancia de QEGLContext. Esta función se ha eliminado.
© 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.