Qt3DExtras::QTextureMaterial Class
class Qt3DExtras::QTextureMaterialQTextureMaterial ofrece una implementación predeterminada de un material de textura sencillo sin iluminación. Más información...
| Encabezado: | #include <qtexturematerial.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| Heredado de: | Qt3DRender::QMaterial |
| Estado: | Obsoleta |
Esta clase está obsoleta. Se desaconseja encarecidamente su uso en código nuevo.
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 renderizado. Se proporcionan técnicas para OpenGL 2, OpenGL 3 o superior, así como para OpenGL ES 2.
Documentación de propiedades
alphaBlending : bool
Indica si se tendrá en cuenta la información alfa procedente de la propiedad «difusa» durante el renderizado. El valor por defecto es «false».
Funciones de acceso:
| bool | isAlphaBlendingEnabled() const |
| void | setAlphaBlendingEnabled(bool enabled) |
Señal de notificador:
| void | alphaBlendingEnabledChanged(bool enabled) |
texture : Qt3DRender::QAbstractTexture*
Almacena la textura actual utilizada por el material.
Funciones de acceso:
| Qt3DRender::QAbstractTexture * | texture() const |
| void | setTexture(Qt3DRender::QAbstractTexture *texture) |
Señal de notificación:
| void | textureChanged(Qt3DRender::QAbstractTexture *texture) |
textureOffset : QVector2D
Esta es una propiedad de utilidad. Establece el componente de traslación de la matriz de transformación general de la textura
Funciones de acceso:
| QVector2D | textureOffset() const |
| void | setTextureOffset(QVector2D textureOffset) |
Señal de notificación:
| void | textureOffsetChanged(QVector2D textureOffset) |
textureTransform : QMatrix3x3
Almacena la transformación actual de la textura. Se aplica a las coordenadas de textura en el momento del renderizado. Por defecto, es la matriz identidad.
Funciones de acceso:
| QMatrix3x3 | textureTransform() const |
| void | setTextureTransform(const QMatrix3x3 &matrix) |
Señal de notificación:
| void | textureTransformChanged(const QMatrix3x3 &textureTransform) |
Documentación de las funciones miembro
[explicit] QTextureMaterial::QTextureMaterial(Qt3DCore::QNode *parent = nullptr)
Crea una nueva instancia de QTextureMaterial con el objeto padre parent.
[virtual noexcept] QTextureMaterial::~QTextureMaterial()
Elimina la instancia de ` 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.