QSGDynamicTexture Class
A classe QSGDynamicTexture funciona como uma classe base para texturas que mudam dinamicamente, como, por exemplo, conteúdo renderizado em FBOs. Mais...
| Cabeçalho: | #include <QSGDynamicTexture> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
| qmake: | QT += quick |
| Herdado de: | QSGTexture |
Funções públicas
| QSGDynamicTexture() | |
| virtual bool | updateTexture() = 0 |
Descrição detalhada
Para atualizar o conteúdo da textura, chame explicitamente a função ` updateTexture()`.
Observação: Todas as classes com o prefixo QSG devem ser usadas exclusivamente na thread de renderização do gráfico de cena. Consulte Gráfico de cena e renderização para obter mais informações.
Documentação das funções de membro
[noexcept default] QSGDynamicTexture::QSGDynamicTexture()
Constrói por padrão uma instância de ` QSGDynamicTexture`.
[pure virtual] bool QSGDynamicTexture::updateTexture()
Chame esta função para atualizar explicitamente a textura dinâmica.
A função retorna true se a textura tiver sido alterada como resultado da atualização; caso contrário, retorna false.
Observação: essa função é normalmente chamada a partir de ` QQuickItem::updatePaintNode()` ou ` QSGNode::preprocess()`, ou seja, durante as fases ` synchronization ` ou ` node preprocessing ` da árvore de cena. Não é recomendável chamá-la em outros momentos, pois isso pode levar a comportamentos inesperados.
© 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.