En esta página

Qt3DRender::QAbstractTexture Class

class Qt3DRender::QAbstractTexture

Una clase base para proporcionar texturas. Más...

Tipos públicos

enum CubeMapFace { CubeMapPositiveX, CubeMapNegativeX, CubeMapPositiveY, CubeMapNegativeY, CubeMapPositiveZ, …, AllFaces }
enum Filter { Nearest, Linear, NearestMipMapNearest, NearestMipMapLinear, LinearMipMapNearest, LinearMipMapLinear }
enum Status { None, Loading, Ready, Error }
enum Target { TargetAutomatic, Target1D, Target1DArray, Target2D, Target2DArray, …, TargetBuffer }
enum TextureFormat { NoFormat, Automatic, R8_UNorm, RG8_UNorm, RGB8_UNorm, …, LuminanceAlphaFormat }

Propiedades

Funciones públicas

void addTextureImage(Qt3DRender::QAbstractTextureImage *textureImage)
Qt3DRender::QAbstractTexture::ComparisonFunction comparisonFunction() const
Qt3DRender::QAbstractTexture::ComparisonMode comparisonMode() const
int depth() const
Qt3DRender::QAbstractTexture::TextureFormat format() const
bool generateMipMaps() const
QVariant handle() const
Qt3DRender::QAbstractTexture::HandleType handleType() const
int height() const
int layers() const
Qt3DRender::QAbstractTexture::Filter magnificationFilter() const
float maximumAnisotropy() const
Qt3DRender::QAbstractTexture::Filter minificationFilter() const
int mipLevels() const
void removeTextureImage(Qt3DRender::QAbstractTextureImage *textureImage)
int samples() const
void setSize(int w, int h = 1, int d = 1)
void setWrapMode(const Qt3DRender::QTextureWrapMode &wrapMode)
Qt3DRender::QAbstractTexture::Status status() const
Qt3DRender::QAbstractTexture::Target target() const
QList<Qt3DRender::QAbstractTextureImage *> textureImages() const
void updateData(const Qt3DRender::QTextureDataUpdate &update)
int width() const
Qt3DRender::QTextureWrapMode *wrapMode()

Ranuras públicas

void setComparisonFunction(Qt3DRender::QAbstractTexture::ComparisonFunction function)
void setComparisonMode(Qt3DRender::QAbstractTexture::ComparisonMode mode)
void setDepth(int depth)
void setFormat(Qt3DRender::QAbstractTexture::TextureFormat format)
void setGenerateMipMaps(bool gen)
void setHeight(int height)
void setLayers(int layers)
void setMagnificationFilter(Qt3DRender::QAbstractTexture::Filter f)
void setMaximumAnisotropy(float anisotropy)
void setMinificationFilter(Qt3DRender::QAbstractTexture::Filter f)
void setMipLevels(int mipLevels)
void setSamples(int samples)
void setWidth(int width)

Señales

void comparisonFunctionChanged(Qt3DRender::QAbstractTexture::ComparisonFunction comparisonFunction)
void comparisonModeChanged(Qt3DRender::QAbstractTexture::ComparisonMode comparisonMode)
void depthChanged(int depth)
void formatChanged(Qt3DRender::QAbstractTexture::TextureFormat format)
void generateMipMapsChanged(bool generateMipMaps)
void handleChanged(QVariant handle)
void handleTypeChanged(Qt3DRender::QAbstractTexture::HandleType handleType)
void heightChanged(int height)
void layersChanged(int layers)
void magnificationFilterChanged(Qt3DRender::QAbstractTexture::Filter magnificationFilter)
void maximumAnisotropyChanged(float maximumAnisotropy)
void minificationFilterChanged(Qt3DRender::QAbstractTexture::Filter minificationFilter)
void mipLevelsChanged(int mipLevels)
void samplesChanged(int samples)
void statusChanged(Qt3DRender::QAbstractTexture::Status status)
void widthChanged(int width)

Funciones protegidas

QAbstractTexture(Qt3DCore::QNode *parent = nullptr)
QAbstractTexture(Qt3DRender::QAbstractTexture::Target target, Qt3DCore::QNode *parent = nullptr)
void setStatus(Qt3DRender::QAbstractTexture::Status status)

Descripción Detallada

La clase QAbstractTexture no debe usarse directamente sino a través de una de sus subclases. Cada subclase implementa un objetivo de textura dado (2D, 2DArray, 3D, CubeMap ...) Cada subclase proporciona un conjunto de functores para cada capa, cara de mapa de cubo y nivel de mipmap. A su vez, el backend utiliza esos functores para rellenar correctamente una textura OpenGL correspondiente con datos. Se espera que el functor realice el mínimo procesamiento posible para no ralentizar la generación y carga de texturas. Si el contenido de una textura es el resultado de un proceso de generación procedural lento, se recomienda no implementarlo directamente en un functor.

Todas las texturas son únicas. Si instancias dos veces la misma textura se crearán 2 texturas idénticas en la GPU, no se compartirán.

Documentación de tipos de miembros

enum QAbstractTexture::CubeMapFace

Este enum identifica las caras de una textura de mapa cúbico

ConstanteValorDescripción
Qt3DRender::QAbstractTexture::CubeMapPositiveX0x8515Especifica la cara X positiva de un mapa cúbico
Qt3DRender::QAbstractTexture::CubeMapNegativeX0x8516Especifica la cara X negativa de un mapa cúbico
Qt3DRender::QAbstractTexture::CubeMapPositiveY0x8517Especifica la cara Y positiva de un mapa cúbico
Qt3DRender::QAbstractTexture::CubeMapNegativeY0x8518Especificar la cara Y negativa de un mapa cúbico
Qt3DRender::QAbstractTexture::CubeMapPositiveZ0x8519Especificar la cara Z positiva de un mapa de cubo
Qt3DRender::QAbstractTexture::CubeMapNegativeZ0x851AEspecificar la cara Z negativa de un mapa de cubo
Qt3DRender::QAbstractTexture::AllFaces0x851bEspecificar todas las caras de un mapa cúbico

Nota: AllFaces sólo debe utilizarse cuando se necesite aplicar un comportamiento a todas las caras de un cubemap. Este es el caso, por ejemplo, cuando se utiliza un mapa cúbico como accesorio de textura. El uso de AllFaces en la especificación del aditamento resultaría en que todas las caras estarían ligadas al punto de aditamento. Por otro lado, si se especifica una cara concreta, el adjunto sólo utilizaría la cara especificada.

enum QAbstractTexture::Filter

Contiene el tipo de filtro del proveedor de textura.

ConstanteValorDescripción
Qt3DRender::QAbstractTexture::Nearest0x2600GL_MÁS CERCA
Qt3DRender::QAbstractTexture::Linear0x2601GL_LINEAR
Qt3DRender::QAbstractTexture::NearestMipMapNearest0x2700GL_NEAREST_MIPMAP_NEAREST
Qt3DRender::QAbstractTexture::NearestMipMapLinear0x2702GL_NEAREST_MIPMAP_LINEAR
Qt3DRender::QAbstractTexture::LinearMipMapNearest0x2701GL_LINEAR_MIPMAP_NEAREST
Qt3DRender::QAbstractTexture::LinearMipMapLinear0x2703GL_LINEAR_MIPMAP_LINEAR

enum QAbstractTexture::Status

Contiene el estado del proveedor de textura.

ConstanteValor
Qt3DRender::QAbstractTexture::None0
Qt3DRender::QAbstractTexture::Loading1
Qt3DRender::QAbstractTexture::Ready2
Qt3DRender::QAbstractTexture::Error3

enum QAbstractTexture::Target

ConstanteValorDescripción
Qt3DRender::QAbstractTexture::TargetAutomatic0El objetivo será determinado por el motor Qt3D
Qt3DRender::QAbstractTexture::Target1D0x0DE0GL_TEXTURE_1D
Qt3DRender::QAbstractTexture::Target1DArray0x8C18GL_TEXTURE_1D_ARRAY
Qt3DRender::QAbstractTexture::Target2D0x0DE1GL_TEXTURE_2D
Qt3DRender::QAbstractTexture::Target2DArray0x8C1AGL_TEXTURE_2D_ARRAY
Qt3DRender::QAbstractTexture::Target3D0x806FGL_TEXTURE_3D
Qt3DRender::QAbstractTexture::TargetCubeMap0x8513GL_TEXTURE_CUBE_MAP
Qt3DRender::QAbstractTexture::TargetCubeMapArray0x9009GL_TEXTURE_CUBE_MAP_ARRAY
Qt3DRender::QAbstractTexture::Target2DMultisample0x9100GL_TEXTURE_2D_MULTISAMPLE
Qt3DRender::QAbstractTexture::Target2DMultisampleArray0x9102GL_TEXTURE_2D_MULTISAMPLE_ARRAY
Qt3DRender::QAbstractTexture::TargetRectangle0x84F5GL_TEXTURE_RECTANGLE
Qt3DRender::QAbstractTexture::TargetBuffer0x8C2AGL_TEXTURE_BUFFER

enum QAbstractTexture::TextureFormat

Esta lista describe todos los formatos de textura posibles

ConstanteValorDescripción
Qt3DRender::QAbstractTexture::NoFormat0GL_NONE
Qt3DRender::QAbstractTexture::Automatic1determina_formato_automaticamente
Qt3DRender::QAbstractTexture::R8_UNorm0x8229GL_R8
Qt3DRender::QAbstractTexture::RG8_UNorm0x822BGL_RG8
Qt3DRender::QAbstractTexture::RGB8_UNorm0x8051GL_RGB8
Qt3DRender::QAbstractTexture::RGBA8_UNorm0x8058GL_RGBA8
Qt3DRender::QAbstractTexture::R16_UNorm0x822AGL_R16
Qt3DRender::QAbstractTexture::RG16_UNorm0x822CGL_RG16
Qt3DRender::QAbstractTexture::RGB16_UNorm0x8054GL_RGB16
Qt3DRender::QAbstractTexture::RGBA16_UNorm0x805BGL_RGBA16
Qt3DRender::QAbstractTexture::R8_SNorm0x8F94GL_R8_SNORM
Qt3DRender::QAbstractTexture::RG8_SNorm0x8F95GL_RG8_SNORM
Qt3DRender::QAbstractTexture::RGB8_SNorm0x8F96GL_RGB8_SNORM
Qt3DRender::QAbstractTexture::RGBA8_SNorm0x8F97GL_RGBA8_SNORM
Qt3DRender::QAbstractTexture::R16_SNorm0x8F98GL_R16_SNORM
Qt3DRender::QAbstractTexture::RG16_SNorm0x8F99GL_RG16_SNORM
Qt3DRender::QAbstractTexture::RGB16_SNorm0x8F9AGL_RGB16_SNORM
Qt3DRender::QAbstractTexture::RGBA16_SNorm0x8F9BGL_RGBA16_SNORM
Qt3DRender::QAbstractTexture::R8U0x8232GL_R8UI
Qt3DRender::QAbstractTexture::RG8U0x8238GL_RG8UI
Qt3DRender::QAbstractTexture::RGB8U0x8D7DGL_RGB8UI
Qt3DRender::QAbstractTexture::RGBA8U0x8D7CGL_RGBA8UI
Qt3DRender::QAbstractTexture::R16U0x8234GL_R16UI
Qt3DRender::QAbstractTexture::RG16U0x823AGL_RG16UI
Qt3DRender::QAbstractTexture::RGB16U0x8D77GL_RGB16UI
Qt3DRender::QAbstractTexture::RGBA16U0x8D76GL_RGBA16UI
Qt3DRender::QAbstractTexture::R32U0x8236GL_R32UI
Qt3DRender::QAbstractTexture::RG32U0x823CGL_RG32UI
Qt3DRender::QAbstractTexture::RGB32U0x8D71GL_RGB32UI
Qt3DRender::QAbstractTexture::RGBA32U0x8D70GL_RGBA32UI
Qt3DRender::QAbstractTexture::R8I0x8231GL_R8I
Qt3DRender::QAbstractTexture::RG8I0x8237GL_RG8I
Qt3DRender::QAbstractTexture::RGB8I0x8D8FGL_RGB8I
Qt3DRender::QAbstractTexture::RGBA8I0x8D8EGL_RGBA8I
Qt3DRender::QAbstractTexture::R16I0x8233GL_R16I
Qt3DRender::QAbstractTexture::RG16I0x8239GL_RG16I
Qt3DRender::QAbstractTexture::RGB16I0x8D89GL_RGB16I
Qt3DRender::QAbstractTexture::RGBA16I0x8D88GL_RGBA16I
Qt3DRender::QAbstractTexture::R32I0x8235GL_R32I
Qt3DRender::QAbstractTexture::RG32I0x823BGL_RG32I
Qt3DRender::QAbstractTexture::RGB32I0x8D83GL_RGB32I
Qt3DRender::QAbstractTexture::RGBA32I0x8D82GL_RGBA32I
Qt3DRender::QAbstractTexture::R16F0x822DGL_R16F
Qt3DRender::QAbstractTexture::RG16F0x822FGL_RG16F
Qt3DRender::QAbstractTexture::RGB16F0x881BGL_RGB16F
Qt3DRender::QAbstractTexture::RGBA16F0x881AGL_RGBA16F
Qt3DRender::QAbstractTexture::R32F0x822EGL_R32F
Qt3DRender::QAbstractTexture::RG32F0x8230GL_RG32F
Qt3DRender::QAbstractTexture::RGB32F0x8815GL_RGB32F
Qt3DRender::QAbstractTexture::RGBA32F0x8814GL_RGBA32F
Qt3DRender::QAbstractTexture::RGB9E50x8C3DGL_RGB9_E5
Qt3DRender::QAbstractTexture::RG11B10F0x8C3AGL_R11F_G11F_B10F
Qt3DRender::QAbstractTexture::RG3B20x2A10GL_R3_G3_B2
Qt3DRender::QAbstractTexture::R5G6B50x8D62GL_RGB565
Qt3DRender::QAbstractTexture::RGB5A10x8057GL_RGB5_A1
Qt3DRender::QAbstractTexture::RGBA40x8056GL_RGBA4
Qt3DRender::QAbstractTexture::RGB10A20x8059GL_RGB10_A2
Qt3DRender::QAbstractTexture::RGB10A2U0x906FGL_RGB10_A2UI
Qt3DRender::QAbstractTexture::D160x81A5GL_DEPTH_COMPONENT16
Qt3DRender::QAbstractTexture::D240x81A6GL_DEPTH_COMPONENT24
Qt3DRender::QAbstractTexture::D24S80x88F0GL_DEPTH24_STENCIL8
Qt3DRender::QAbstractTexture::D320x81A7GL_DEPTH_COMPONENT32
Qt3DRender::QAbstractTexture::D32F0x8CACGL_DEPTH_COMPONENT32F
Qt3DRender::QAbstractTexture::D32FS8X240x8CADGL_DEPTH32F_STENCIL8
Qt3DRender::QAbstractTexture::RGB_DXT10x83F0GL_COMPRESSED_RGB_S3TC_DXT1_EXT
Qt3DRender::QAbstractTexture::RGBA_DXT10x83F1GL_COMPRESSED_RGBA_S3TC_DXT1_EXT
Qt3DRender::QAbstractTexture::RGBA_DXT30x83F2GL_COMPRESSED_RGBA_S3TC_DXT3_EXT
Qt3DRender::QAbstractTexture::RGBA_DXT50x83F3GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
Qt3DRender::QAbstractTexture::R_ATI1N_UNorm0x8DBBGL_COMPRESSED_RED_RGTC1
Qt3DRender::QAbstractTexture::R_ATI1N_SNorm0x8DBCGL_COMPRESSED_SIGNED_RED_RGTC1
Qt3DRender::QAbstractTexture::RG_ATI2N_UNorm0x8DBDGL_COMPRESSED_RG_RGTC2
Qt3DRender::QAbstractTexture::RG_ATI2N_SNorm0x8DBEGL_COMPRESSED_SIGNED_RG_RGTC2
Qt3DRender::QAbstractTexture::RGB_BP_UNSIGNED_FLOAT0x8E8FGL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB
Qt3DRender::QAbstractTexture::RGB_BP_SIGNED_FLOAT0x8E8EGL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB
Qt3DRender::QAbstractTexture::RGB_BP_UNorm0x8E8CGL_COMPRESSED_RGBA_BPTC_UNORM_ARB
Qt3DRender::QAbstractTexture::R11_EAC_UNorm0x9270GL_COMPRESSED_R11_EAC
Qt3DRender::QAbstractTexture::R11_EAC_SNorm0x9271GL_COMPRESSED_SIGNED_R11_EAC
Qt3DRender::QAbstractTexture::RG11_EAC_UNorm0x9272GL_COMPRESSED_RG11_EAC
Qt3DRender::QAbstractTexture::RG11_EAC_SNorm0x9273GL_COMPRESSED_SIGNED_RG11_EAC
Qt3DRender::QAbstractTexture::RGB8_ETC20x9274GL_COMPRESSED_RGB8_ETC2
Qt3DRender::QAbstractTexture::SRGB8_ETC20x9275GL_COMPRESSED_SRGB8_ETC2
Qt3DRender::QAbstractTexture::RGB8_PunchThrough_Alpha1_ETC20x9276GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2
Qt3DRender::QAbstractTexture::SRGB8_PunchThrough_Alpha1_ETC20x9277GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2
Qt3DRender::QAbstractTexture::RGBA8_ETC2_EAC0x9278GL_COMPRESSED_RGBA8_ETC2_EAC
Qt3DRender::QAbstractTexture::SRGB8_Alpha8_ETC2_EAC0x9279GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC
Qt3DRender::QAbstractTexture::RGB8_ETC10x8D64GL_ETC1_RGB8_OES
Qt3DRender::QAbstractTexture::SRGB80x8C41GL_SRGB8
Qt3DRender::QAbstractTexture::SRGB8_Alpha80x8C43GL_SRGB8_ALPHA8
Qt3DRender::QAbstractTexture::SRGB_DXT10x8C4CGL_COMPRESSED_SRGB_S3TC_DXT1_EXT
Qt3DRender::QAbstractTexture::SRGB_Alpha_DXT10x8C4DGL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT
Qt3DRender::QAbstractTexture::SRGB_Alpha_DXT30x8C4EGL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT
Qt3DRender::QAbstractTexture::SRGB_Alpha_DXT50x8C4FGL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT
Qt3DRender::QAbstractTexture::SRGB_BP_UNorm0x8E8DGL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB
Qt3DRender::QAbstractTexture::DepthFormat0x1902GL_DEPTH_COMPONENT
Qt3DRender::QAbstractTexture::AlphaFormat0x1906GL_ALPHA
Qt3DRender::QAbstractTexture::RGBFormat0x1907GL_RGB
Qt3DRender::QAbstractTexture::RGBAFormat0x1908GL_RGBA
Qt3DRender::QAbstractTexture::LuminanceFormat0x1909GL_LUMINANCE
Qt3DRender::QAbstractTexture::LuminanceAlphaFormat0x190A0x190A

Documentación de propiedades

comparisonFunction : ComparisonFunction

Contiene la función de comparación del proveedor de textura.

Funciones de acceso:

Qt3DRender::QAbstractTexture::ComparisonFunction comparisonFunction() const
void setComparisonFunction(Qt3DRender::QAbstractTexture::ComparisonFunction function)

Señal del notificador:

void comparisonFunctionChanged(Qt3DRender::QAbstractTexture::ComparisonFunction comparisonFunction)

comparisonMode : ComparisonMode

Mantiene el modo de comparación del proveedor de textura.

Funciones de acceso:

Qt3DRender::QAbstractTexture::ComparisonMode comparisonMode() const
void setComparisonMode(Qt3DRender::QAbstractTexture::ComparisonMode mode)

Señal del notificador:

void comparisonModeChanged(Qt3DRender::QAbstractTexture::ComparisonMode comparisonMode)

depth : int

Contiene la profundidad del proveedor de textura.

Funciones de acceso:

int depth() const
void setDepth(int depth)

Señal del notificador:

void depthChanged(int depth)

format : TextureFormat

Contiene el formato del proveedor de textura.

Funciones de acceso:

Qt3DRender::QAbstractTexture::TextureFormat format() const
void setFormat(Qt3DRender::QAbstractTexture::TextureFormat format)

Señal del notificador:

void formatChanged(Qt3DRender::QAbstractTexture::TextureFormat format)

generateMipMaps : bool

Indica si el proveedor de texturas debe autogenerar mipmaps.

Funciones de acceso:

bool generateMipMaps() const
void setGenerateMipMaps(bool gen)

Señal notificadora:

void generateMipMapsChanged(bool generateMipMaps)

[read-only] handle : QVariant

Mantiene el identificador de la textura actual, si Qt 3D está usando el renderizador OpenGL, el identificador es un entero.

Funciones de acceso:

QVariant handle() const

Señal notificadora:

void handleChanged(QVariant handle)

[read-only] handleType : HandleType

Mantiene el tipo de asa de textura actual.

Funciones de acceso:

Qt3DRender::QAbstractTexture::HandleType handleType() const

Señal de notificador:

void handleTypeChanged(Qt3DRender::QAbstractTexture::HandleType handleType)

height : int

Mantiene la altura del proveedor de textura.

Funciones de acceso:

int height() const
void setHeight(int height)

Señal del notificador:

void heightChanged(int height)

layers : int

Contiene el número máximo de capas del proveedor de texturas. Por defecto, el número máximo de capas es 1.

Nota: esto sólo tiene sentido para los proveedores de texturas que tienen formatos de destino 3D o array.

Funciones de acceso:

int layers() const
void setLayers(int layers)

Señal de notificador:

void layersChanged(int layers)

magnificationFilter : Filter

Contiene el filtro de aumento del proveedor de texturas.

Funciones de acceso:

Qt3DRender::QAbstractTexture::Filter magnificationFilter() const
void setMagnificationFilter(Qt3DRender::QAbstractTexture::Filter f)

Señal del notificador:

void magnificationFilterChanged(Qt3DRender::QAbstractTexture::Filter magnificationFilter)

maximumAnisotropy : float

Mantiene la anisotropía máxima del proveedor de textura.

Funciones de acceso:

float maximumAnisotropy() const
void setMaximumAnisotropy(float anisotropy)

Señal del notificador:

void maximumAnisotropyChanged(float maximumAnisotropy)

minificationFilter : Filter

Contiene el filtro de minificación del proveedor de texturas.

Funciones de acceso:

Qt3DRender::QAbstractTexture::Filter minificationFilter() const
void setMinificationFilter(Qt3DRender::QAbstractTexture::Filter f)

Señal del notificador:

void minificationFilterChanged(Qt3DRender::QAbstractTexture::Filter minificationFilter)

mipLevels : int

Contiene los niveles mipmap del proveedor de texturas.

Funciones de acceso:

int mipLevels() const
void setMipLevels(int mipLevels)

Señal notificadora:

void mipLevelsChanged(int mipLevels)

samples : int

Contiene el número de muestras por texel para el proveedor de textura. Por defecto, el número de muestras es 1.

Nota: esto sólo tiene sentido para los proveedores de texturas que tienen formatos multimuestra.

Funciones de acceso:

int samples() const
void setSamples(int samples)

Señal del notificador:

void samplesChanged(int samples)

[read-only] status : Status

Indica el estado actual del proveedor de texturas.

Funciones de acceso:

Qt3DRender::QAbstractTexture::Status status() const

Señal del notificador:

void statusChanged(Qt3DRender::QAbstractTexture::Status status)

[read-only] target : const Target

Contiene el formato de destino del proveedor de textura.

Nota: El formato de destino sólo puede establecerse una vez.

Funciones de acceso:

Qt3DRender::QAbstractTexture::Target target() const

width : int

Mantiene el ancho del proveedor de textura.

Funciones de acceso:

int width() const
void setWidth(int width)

Señal del notificador:

void widthChanged(int width)

[read-only] wrapMode : Qt3DRender::QTextureWrapMode* const

Mantiene el modo de envoltura del proveedor de textura.

Funciones de acceso:

Qt3DRender::QTextureWrapMode *wrapMode()

Documentación de funciones miembro

[explicit protected] QAbstractTexture::QAbstractTexture(Qt3DCore::QNode *parent = nullptr)

El constructor crea una nueva instancia de QAbstractTexture::QAbstractTexture con la dirección parent especificada.

[explicit protected] QAbstractTexture::QAbstractTexture(Qt3DRender::QAbstractTexture::Target target, Qt3DCore::QNode *parent = nullptr)

El constructor crea una nueva instancia de QAbstractTexture::QAbstractTexture con los datos target y parent especificados.

void QAbstractTexture::addTextureImage(Qt3DRender::QAbstractTextureImage *textureImage)

Añade un nuevo Qt3DCore::QAbstractTextureImage textureImage al proveedor de texturas.

Nota: Qt3DRender::QAbstractTextureImage nunca debe ser compartida entre múltiples instancias de Qt3DRender::QAbstractTexture.

Qt3DRender::QAbstractTexture::ComparisonFunction QAbstractTexture::comparisonFunction() const

Devuelve la función de comparación actual.

Nota: Función Getter para la propiedad comparisonFunction.

Véase también setComparisonFunction().

Qt3DRender::QAbstractTexture::ComparisonMode QAbstractTexture::comparisonMode() const

Devuelve el modo de comparación actual.

Nota: Función Getter para la propiedad comparisonMode.

Véase también setComparisonMode().

int QAbstractTexture::depth() const

Devuelve la profundidad de la textura

Nota: Función Getter para la propiedad depth.

Véase también setDepth().

Qt3DRender::QAbstractTexture::TextureFormat QAbstractTexture::format() const

Devuelve el formato del proveedor de textura.

Nota: Función Getter para la propiedad formato.

Véase también setFormat().

QVariant QAbstractTexture::handle() const

Devuelve el manejador de la textura actual, si Qt 3D está usando el renderizador OpenGL, el manejador es un entero de id de textura.

Nota: Función Getter para la propiedad handle.

Qt3DRender::QAbstractTexture::HandleType QAbstractTexture::handleType() const

Devuelve el tipo de manejador de textura actual.

Nota: Función Getter para la propiedad handleType.

int QAbstractTexture::height() const

Devuelve la altura de la textura

Nota: Función Getter para la propiedad height.

Ver también setHeight().

int QAbstractTexture::layers() const

Devuelve el número máximo de capas para el proveedor de texturas.

Nota: esto sólo tiene sentido para los proveedores de texturas que tienen formatos de destino 3D o array.

Nota: Función getter para capas de propiedades.

Véase también setLayers().

float QAbstractTexture::maximumAnisotropy() const

Devuelve la anisotropía máxima actual

Nota: Función Getter para la propiedad maximumAnisotropy.

Véase también setMaximumAnisotropy().

void QAbstractTexture::removeTextureImage(Qt3DRender::QAbstractTextureImage *textureImage)

Elimina una Qt3DCore::QAbstractTextureImage textureImage del proveedor de texturas.

int QAbstractTexture::samples() const

Devuelve el número de muestras por texel para el proveedor de textura.

Nota: esto sólo tiene sentido para los proveedores de texturas que tienen formatos multimuestra.

Nota: Función getter para la propiedad samples.

Véase también setSamples().

[slot] void QAbstractTexture::setComparisonFunction(Qt3DRender::QAbstractTexture::ComparisonFunction function)

Establezca la función de comparación en function.

Nota: Función Setter para la propiedad comparisonFunction.

Véase también comparisonFunction().

[slot] void QAbstractTexture::setComparisonMode(Qt3DRender::QAbstractTexture::ComparisonMode mode)

Establece el modo de comparación en mode.

Nota: Función Setter para la propiedad comparisonMode.

Véase también comparisonMode().

[slot] void QAbstractTexture::setDepth(int depth)

Establece la profundidad de la textura en depth.

Nota: Función Setter para la propiedad depth.

Véase también depth().

[slot] void QAbstractTexture::setFormat(Qt3DRender::QAbstractTexture::TextureFormat format)

Establece el formato de textura en format.

Nota: Función Setter para la propiedad format.

Véase también format().

[slot] void QAbstractTexture::setGenerateMipMaps(bool gen)

El parámetro booleano gen establece una bandera que indica si el proveedor de textura debe generar mipmaps o no.

Nota: Función setter para la propiedad generateMipMaps.

Véase también generateMipMaps().

[slot] void QAbstractTexture::setHeight(int height)

Establezca la altura en height.

Nota: Función Setter para la propiedad height.

Véase también height().

[slot] void QAbstractTexture::setLayers(int layers)

Establezca el número máximo de capas en layers.

Nota: Función Setter para la propiedad layers.

Véase también layers().

[slot] void QAbstractTexture::setMagnificationFilter(Qt3DRender::QAbstractTexture::Filter f)

Establezca el filtro de ampliación en f.

Nota: Función Setter para la propiedad magnificationFilter.

Véase también magnificationFilter().

[slot] void QAbstractTexture::setMaximumAnisotropy(float anisotropy)

Establece la anisotropía máxima en anisotropy.

Nota: Función Setter para la propiedad maximumAnisotropy.

Véase también maximumAnisotropy().

[slot] void QAbstractTexture::setMinificationFilter(Qt3DRender::QAbstractTexture::Filter f)

Establece el filtro de minificación en el valor especificado f.

Nota: Función Setter para la propiedad minificationFilter.

Véase también minificationFilter().

[slot] void QAbstractTexture::setSamples(int samples)

Establece el número de muestras por texel en samples.

Nota: Función Setter para la propiedad samples.

Véase también samples().

void QAbstractTexture::setSize(int w, int h = 1, int d = 1)

Establece el tamaño del proveedor de textura en anchura w, altura h y profundidad d.

[protected] void QAbstractTexture::setStatus(Qt3DRender::QAbstractTexture::Status status)

Establece el estado del proveedor de texturas en el status especificado.

Véase también status().

[slot] void QAbstractTexture::setWidth(int width)

Establece la anchura del proveedor de textura en width.

Nota: Función Setter para la propiedad width.

Véase también width().

void QAbstractTexture::setWrapMode(const Qt3DRender::QTextureWrapMode &wrapMode)

Establece el wrapmode al valor especificado en wrapMode.

Véase también wrapMode().

Qt3DRender::QAbstractTexture::Status QAbstractTexture::status() const

Devuelve el estado actual del proveedor de textura.

Nota: Función Getter para el estado de la propiedad.

Ver también setStatus().

Qt3DRender::QAbstractTexture::Target QAbstractTexture::target() const

Devuelve el formato de destino del proveedor de textura.

Nota: Función Getter para la propiedad target.

QList<Qt3DRender::QAbstractTextureImage *> QAbstractTexture::textureImages() const

Devuelve una lista de punteros a objetos QAbstractTextureImage contenidos en el proveedor de texturas.

[invokable] void QAbstractTexture::updateData(const Qt3DRender::QTextureDataUpdate &update)

Actualiza una subregión de la textura, definida por update, sin tener que cambiar el generador de datos o depender de añadir o eliminar imágenes de textura.

Nota: Esta función puede invocarse a través del sistema de metaobjetos y desde QML. Véase Q_INVOKABLE.

int QAbstractTexture::width() const

Devuelve el ancho de la textura

Nota: Función Getter para la propiedad width.

Ver también setWidth().

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