In questa pagina

Qt3DRender::QTextureImageDataGenerator Class

class Qt3DRender::QTextureImageDataGenerator

Fornisce dati relativi alle immagini di texture per QAbstractTextureImage. Altro...

Intestazione: #include <qtextureimagedatagenerator.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
Eredita da: Qt3DCore::QAbstractFunctor
Stato: Obsoleto

Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.

Funzioni pubbliche

virtual Qt3DRender::QTextureImageDataPtr operator()() = 0
virtual bool operator==(const Qt3DRender::QTextureImageDataGenerator &other) const = 0

Descrizione dettagliata

QTextureImageDataGenerator è un provider di dati per QAbstractTexture. QTextureImageDataGenerator può essere utilizzato per estendere Qt3D con ulteriori modalità di caricamento dei dati delle immagini di texture, oltre a supportare formati definiti dall'utente e formati che Qt3D non supporta in modo nativo. I dati vengono restituiti dall’oggetto ` QTextureImageDataPtr `, che contiene i dati che verranno caricati nella texture. QTextureImageDataGenerator viene eseguito dai job di Aspect nel backend.

Documentazione delle funzioni membro

[pure virtual] Qt3DRender::QTextureImageDataPtr QTextureImageDataGenerator::operator()()

Implementare il metodo per restituire i dati dell'immagine della texture.

[pure virtual] bool QTextureImageDataGenerator::operator==(const Qt3DRender::QTextureImageDataGenerator &other) const

Implementare il metodo per confrontare questo generatore di dati di texture con other. Restituisce un valore booleano che indica se QAbstractTextureImage deve ricaricare QTextureImageData.

Elementi correlati non membri

QTextureImageDataPtr

Puntatore condiviso a QTextureImageData.

© 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.