QSGDynamicTexture Class
La clase QSGDynamicTexture sirve como clase base para las texturas que cambian dinámicamente, como el contenido que se renderiza en los FBO. Más...
| Cabecera: | #include <QSGDynamicTexture> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick)target_link_libraries(mytarget PRIVATE Qt6::Quick) |
| qmake: | QT += quick |
| Hereda: | QSGTexture |
Funciones Públicas
| virtual bool | updateTexture() = 0 |
Descripción detallada
Para actualizar el contenido de la textura, llama explícitamente a updateTexture().
Nota: Todas las clases con el prefijo QSG deben ser usadas únicamente en el hilo de renderizado del gráfico de escena. Ver Gráfico de Escena y Renderizado para más información.
Documentación de las funciones miembro
[pure virtual] bool QSGDynamicTexture::updateTexture()
Llame a esta función para actualizar explícitamente la textura dinámica.
La función devuelve true si la textura ha cambiado como resultado de la actualización; en caso contrario devuelve false.
Nota: Esta función se ejecuta normalmente desde QQuickItem::updatePaintNode() o QSGNode::preprocess(), es decir, durante las fases synchronization o node preprocessing de la escena. Llamarla en otros momentos es desaconsejable y puede llevar a comportamientos 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.