QNativeInterface::QEGLContext Struct
Interface nativa para um contexto EGL. Mais...
| Cabeçalho: | #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 os membros, incluindo os herdados
- QEGLContext faz parte das Interfaces Nativas.
Funções 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 &) |
Membros públicos estáticos
| QOpenGLContext * | fromNative(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext = nullptr) |
Descrição detalhada
Acessado por meio de ` QOpenGLContext::nativeInterface()`.
Documentação das funções de membro
[constexpr noexcept default] QEGLContext::QEGLContext()
Constrói, por padrão, uma instância de ` QEGLContext`.
[delete] QEGLContext::QEGLContext(const QNativeInterface::QEGLContext &)
Cria uma instância de ` QEGLContext` por meio de cópia. Esta função foi excluída.
[delete] QEGLContext::QEGLContext(QNativeInterface::QEGLContext &&)
Cria uma instância de ` QEGLContext` por meio da função `move`. Essa função foi excluída.
[pure virtual, since 6.3] EGLConfig QEGLContext::config() const
Retorna o EGLConfig associado ao EGLContext subjacente.
Essa função foi introduzida no Qt 6.3.
[pure virtual, since 6.3] EGLDisplay QEGLContext::display() const
Retorna o EGLDisplay associado ao EGLContext subjacente.
Essa função foi introduzida no Qt 6.3.
[static] QOpenGLContext *QEGLContext::fromNative(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext = nullptr)
Adota um EGLContext context.
O mesmo EGLDisplay passado para eglCreateContext deve ser passado como o argumento display.
A propriedade do QOpenGLContext criado shareContext é transferida para o chamador.
[pure virtual, since 6.5] void QEGLContext::invalidateContext()
Marca o contexto como inválido
Se esse contexto for usado pela árvore de cena do ` Qt Quick `, isso fará com que a árvore de cena destrua esse contexto e crie um novo.
Da mesma forma que QPlatformWindow::invalidateSurface(), pode-se esperar que esta função tenha efeito apenas em determinadas plataformas, como eglfs.
Esta função foi introduzida no Qt 6.5.
Veja também QOpenGLContext::isValid().
[pure virtual] EGLContext QEGLContext::nativeContext() const
Retorna o EGLContext subjacente.
[delete] QNativeInterface::QEGLContext &QEGLContext::operator=(QNativeInterface::QEGLContext &&)
A função “Move-assigns” atribui “ other ” a esta instância de “ QEGLContext ”. Essa função é excluída.
[delete] QNativeInterface::QEGLContext &QEGLContext::operator=(const QNativeInterface::QEGLContext &)
Copia e atribui o other a esta instância do QEGLContext. Esta função foi excluída.
© 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.