Qt3DRender::QTextureImageData Class
class Qt3DRender::QTextureImageDataQTextureImageData almacena datos que representan una textura. Más información...
| Encabezado: | #include <qtextureimagedata.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| Estado: | Obsoleta |
Esta clase está obsoleta. Se desaconseja encarecidamente su uso en código nuevo.
Funciones públicas
| QTextureImageData() | |
| int | alignment() const |
| void | cleanup() |
| QByteArray | data(int layer = 0, int face = 0, int mipmapLevel = 0) const |
| int | depth() const |
| int | faces() const |
| QOpenGLTexture::TextureFormat | format() const |
| int | height() const |
| bool | isCompressed() const |
| int | layers() const |
| int | mipLevels() const |
| QOpenGLTexture::PixelFormat | pixelFormat() const |
| QOpenGLTexture::PixelType | pixelType() const |
| void | setAlignment(int alignment) |
| void | setData(const QByteArray &data, int blockSize, bool isCompressed = false) |
| void | setDepth(int depth) |
| void | setFaces(int faces) |
| void | setFormat(QOpenGLTexture::TextureFormat format) |
| void | setHeight(int height) |
| void | setImage(const QImage &image) |
| void | setLayers(int layers) |
| void | setMipLevels(int mipLevels) |
| void | setPixelFormat(QOpenGLTexture::PixelFormat pixelFormat) |
| void | setPixelType(QOpenGLTexture::PixelType pixelType) |
| void | setTarget(QOpenGLTexture::Target target) |
| void | setWidth(int width) |
| QOpenGLTexture::Target | target() const |
| int | width() const |
Documentación de las funciones de miembro
QTextureImageData::QTextureImageData()
Crea un nuevo objeto ` Qt3DRender::QTextureImageData`.
[noexcept] int QTextureImageData::alignment() const
Devuelve el requisito de alineación de la imagen.
Véase también setAlignment().
[noexcept] void QTextureImageData::cleanup()
Eliminar los datos de textura almacenados y devolver el objeto a su estado inicial
QByteArray QTextureImageData::data(int layer = 0, int face = 0, int mipmapLevel = 0) const
Devuelve los datos de imagen sin procesar de la textura correspondiente a la capa layer, la cara face y el nivel de mipmap mipmapLevel.
Véase también setData().
[noexcept] int QTextureImageData::depth() const
Devuelve la profundidad de la textura almacenada
Véase también setDepth().
[noexcept] int QTextureImageData::faces() const
Devuelve el número de caras de la textura almacenada
Véase también setFaces().
[noexcept] QOpenGLTexture::TextureFormat QTextureImageData::format() const
Devuelve el formato de la textura almacenada.
Véase también setFormat().
[noexcept] int QTextureImageData::height() const
Devuelve la altura de la textura almacenada
Véase también setHeight().
[noexcept] bool QTextureImageData::isCompressed() const
Devuelve «true» si la textura almacenada está en un formato comprimido
[noexcept] int QTextureImageData::layers() const
Devuelve el número de capas de la textura almacenada
Véase también setLayers().
[noexcept] int QTextureImageData::mipLevels() const
Devuelve el número de niveles MIP de la textura almacenada
Véase también setMipLevels().
[noexcept] QOpenGLTexture::PixelFormat QTextureImageData::pixelFormat() const
Devuelve el formato de píxeles de la textura almacenada.
Véase también ` setPixelFormat()`.
[noexcept] QOpenGLTexture::PixelType QTextureImageData::pixelType() const
Devuelve el tipo de píxel de la textura almacenada.
Véase también setPixelType().
[noexcept] void QTextureImageData::setAlignment(int alignment)
Establece los requisitos de « alignment » para la imagen.
Véase también alignment().
void QTextureImageData::setData(const QByteArray &data, int blockSize, bool isCompressed = false)
Almacena los datos data con un tamaño de bloque blockSize y, si los datos que se van a almacenar están comprimidos, isCompressed.
Véase también data().
[noexcept] void QTextureImageData::setDepth(int depth)
Establece la profundidad en depth. setDepth
Véase también depth().
[noexcept] void QTextureImageData::setFaces(int faces)
Establece las caras en faces. setFaces
Véase también faces().
[noexcept] void QTextureImageData::setFormat(QOpenGLTexture::TextureFormat format)
Establece el formato en « format ».
Véase también format().
[noexcept] void QTextureImageData::setHeight(int height)
Establece la altura en height. setHeight
Véase también height().
void QTextureImageData::setImage(const QImage &image)
Copia la imagen image como datos sin procesar dentro de este objeto.
[noexcept] void QTextureImageData::setLayers(int layers)
Establece las capas en « layers ». setLayers
Véase también layers().
[noexcept] void QTextureImageData::setMipLevels(int mipLevels)
Establece los niveles de mip en mipLevels. setMipLevels
Véase también mipLevels().
[noexcept] void QTextureImageData::setPixelFormat(QOpenGLTexture::PixelFormat pixelFormat)
Establece el formato de píxeles en « pixelFormat ».
Véase también pixelFormat().
[noexcept] void QTextureImageData::setPixelType(QOpenGLTexture::PixelType pixelType)
Establece el tipo de píxel en « pixelType ».
Véase también pixelType().
[noexcept] void QTextureImageData::setTarget(QOpenGLTexture::Target target)
Establece la dirección de destino en target.
Véase también target().
[noexcept] void QTextureImageData::setWidth(int width)
Establece el ancho en width. setWidth
Véase también width().
[noexcept] QOpenGLTexture::Target QTextureImageData::target() const
Devuelve el destino de la textura almacenada.
Véase también setTarget().
[noexcept] int QTextureImageData::width() const
Devuelve la anchura de la textura almacenada
Véase 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.