Qt3DExtras::QTextureMaterial Class
class Qt3DExtras::QTextureMaterialO QTextureMaterial oferece uma implementação padrão de um material de textura simples sem iluminação. Mais...
| Cabeçalho: | #include <qtexturematerial.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| Herdado de: | Qt3DRender::QMaterial |
| Status: | Obsoleta |
Esta classe está obsoleta. Recomendamos fortemente que não seja utilizada em código novo.
Propriedades
- alphaBlending : bool
- texture : Qt3DRender::QAbstractTexture*
- textureOffset : QVector2D
- textureTransform : QMatrix3x3
Funções públicas
| QTextureMaterial(Qt3DCore::QNode *parent = nullptr) | |
| virtual | ~QTextureMaterial() |
| bool | isAlphaBlendingEnabled() const |
| Qt3DRender::QAbstractTexture * | texture() const |
| QVector2D | textureOffset() const |
| QMatrix3x3 | textureTransform() const |
Slots públicos
| void | setAlphaBlendingEnabled(bool enabled) |
| void | setTexture(Qt3DRender::QAbstractTexture *texture) |
| void | setTextureOffset(QVector2D textureOffset) |
| void | setTextureTransform(const QMatrix3x3 &matrix) |
Sinais
| void | alphaBlendingEnabledChanged(bool enabled) |
| void | textureChanged(Qt3DRender::QAbstractTexture *texture) |
| void | textureOffsetChanged(QVector2D textureOffset) |
| void | textureTransformChanged(const QMatrix3x3 &textureTransform) |
Descrição detalhada
Este material utiliza um efeito com uma abordagem de passagem única de renderização. São fornecidas técnicas para OpenGL 2, OpenGL 3 ou superior, bem como para OpenGL ES 2.
Documentação das propriedades
alphaBlending : bool
Indica se as informações de alfa provenientes da propriedade “difusa” serão levadas em consideração durante a renderização. O valor padrão é “false”.
Funções de acesso:
| bool | isAlphaBlendingEnabled() const |
| void | setAlphaBlendingEnabled(bool enabled) |
Sinal do notificador:
| void | alphaBlendingEnabledChanged(bool enabled) |
texture : Qt3DRender::QAbstractTexture*
Armazena a textura atual utilizada pelo material.
Funções de acesso:
| Qt3DRender::QAbstractTexture * | texture() const |
| void | setTexture(Qt3DRender::QAbstractTexture *texture) |
Sinal do notificador:
| void | textureChanged(Qt3DRender::QAbstractTexture *texture) |
textureOffset : QVector2D
Esta é uma propriedade utilitária. Ela define o componente de translação da matriz de transformação geral da textura
Funções de acesso:
| QVector2D | textureOffset() const |
| void | setTextureOffset(QVector2D textureOffset) |
Sinal do Notifier:
| void | textureOffsetChanged(QVector2D textureOffset) |
textureTransform : QMatrix3x3
Armazena a transformação atual da textura. Ela é aplicada às coordenadas da textura no momento da renderização. O valor padrão é a matriz identidade.
Funções de acesso:
| QMatrix3x3 | textureTransform() const |
| void | setTextureTransform(const QMatrix3x3 &matrix) |
Sinal do notificador:
| void | textureTransformChanged(const QMatrix3x3 &textureTransform) |
Documentação das funções de membro
[explicit] QTextureMaterial::QTextureMaterial(Qt3DCore::QNode *parent = nullptr)
Cria uma nova instância de QTextureMaterial com o objeto pai parent.
[virtual noexcept] QTextureMaterial::~QTextureMaterial()
Destrói a instância do ` QTextureMaterial `.
© 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.