Qt3DExtras::QTextureMaterial Class
class Qt3DExtras::QTextureMaterialQTextureMaterial proporciona una implementación por defecto de un simple material de textura sin iluminación. Más...
| Cabecera: | #include <QTextureMaterial> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras)target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| Hereda: | Qt3DRender::QMaterial |
| Status: | Obsoleto |
Propiedades
- alphaBlending : bool
- texture : Qt3DRender::QAbstractTexture*
- textureOffset : QVector2D
- textureTransform : QMatrix3x3
Funciones públicas
| QTextureMaterial(Qt3DCore::QNode *parent = nullptr) | |
| virtual | ~QTextureMaterial() |
| bool | isAlphaBlendingEnabled() const |
| Qt3DRender::QAbstractTexture * | texture() const |
| QVector2D | textureOffset() const |
| QMatrix3x3 | textureTransform() const |
Ranuras públicas
| void | setAlphaBlendingEnabled(bool enabled) |
| void | setTexture(Qt3DRender::QAbstractTexture *texture) |
| void | setTextureOffset(QVector2D textureOffset) |
| void | setTextureTransform(const QMatrix3x3 &matrix) |
Señales
| void | alphaBlendingEnabledChanged(bool enabled) |
| void | textureChanged(Qt3DRender::QAbstractTexture *texture) |
| void | textureOffsetChanged(QVector2D textureOffset) |
| void | textureTransformChanged(const QMatrix3x3 &textureTransform) |
Descripción detallada
Este material utiliza un efecto con un enfoque de una sola pasada de render. Se proporcionan técnicas para OpenGL 2, OpenGL 3 o superior, así como OpenGL ES 2.
Documentación de propiedades
alphaBlending : bool
Indica si la información alfa procedente de la propiedad difusa se tendrá en cuenta durante el renderizado. Por defecto es false.
Funciones de acceso:
| bool | isAlphaBlendingEnabled() const |
| void | setAlphaBlendingEnabled(bool enabled) |
Señal del notificador:
| void | alphaBlendingEnabledChanged(bool enabled) |
texture : Qt3DRender::QAbstractTexture*
Mantiene la textura actual utilizada por el material.
Funciones de acceso:
| Qt3DRender::QAbstractTexture * | texture() const |
| void | setTexture(Qt3DRender::QAbstractTexture *texture) |
Señal notificadora:
| void | textureChanged(Qt3DRender::QAbstractTexture *texture) |
textureOffset : QVector2D
Esta es una propiedad de utilidad. Establece el componente de traslación de la matriz general de transformación de la textura.
Funciones de acceso:
| QVector2D | textureOffset() const |
| void | setTextureOffset(QVector2D textureOffset) |
Señal notificadora:
| void | textureOffsetChanged(QVector2D textureOffset) |
textureTransform : QMatrix3x3
Mantiene la transformación actual de la textura. Se aplica a las coordenadas de la textura en tiempo de renderizado. Por defecto es una matriz de identidad.
Funciones de acceso:
| QMatrix3x3 | textureTransform() const |
| void | setTextureTransform(const QMatrix3x3 &matrix) |
Señal notificadora:
| void | textureTransformChanged(const QMatrix3x3 &textureTransform) |
Documentación de la función miembro
[explicit] QTextureMaterial::QTextureMaterial(Qt3DCore::QNode *parent = nullptr)
Construye una nueva instancia de QTextureMaterial con el objeto padre parent.
[virtual noexcept] QTextureMaterial::~QTextureMaterial()
Destruye la instancia 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.