Nesta página

Qt3DRender::QTextureImageDataGenerator Class

class Qt3DRender::QTextureImageDataGenerator

Fornece dados de imagem de textura para o QAbstractTextureImage. Mais...

Cabeçalho: #include <qtextureimagedatagenerator.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
Herdado de: Qt3DCore::QAbstractFunctor
Status: Obsoleta

Esta classe está obsoleta. Recomendamos enfaticamente que você não a utilize em código novo.

Funções públicas

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

Descrição detalhada

O QTextureImageDataGenerator é um provedor de dados para o QAbstractTexture. O QTextureImageDataGenerator pode ser usado para ampliar o Qt3D com mais formas de carregar dados de imagens de textura, bem como oferecer suporte a formatos definidos pelo usuário e formatos que o Qt3D não suporta nativamente. Os dados são retornados pelo ` QTextureImageDataPtr `, que contém os dados que serão carregados na textura. O `QTextureImageDataGenerator` é executado por tarefas do Aspect no backend.

Documentação das funções de membro

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

Implemente o método para retornar os dados da imagem de textura.

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

Implemente o método para comparar este gerador de dados de textura com other. Retorna um valor booleano que indica se o QAbstractTextureImage precisa recarregar o QTextureImageData.

Não-membros relacionados

QTextureImageDataPtr

Ponteiro compartilhado para 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.