QTextureDataUpdate Class

class Qt3DRender::QTextureDataUpdate

QTextureDataUpdate holds content and information required to perform partial updates of a texture content. More...

Header: #include <QTextureDataUpdate>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
Since: Qt 5.14

Public Functions

QTextureDataUpdate(const Qt3DRender::QTextureDataUpdate &other)
Qt3DRender::QTextureDataUpdate &operator=(Qt3DRender::QTextureDataUpdate &&other)
Qt3DRender::QTextureDataUpdate &operator=(const Qt3DRender::QTextureDataUpdate &other)
Qt3DRender::QTextureImageDataPtr data() const
QAbstractTexture::CubeMapFace face() const
int layer() const
int mipLevel() const
void setData(const Qt3DRender::QTextureImageDataPtr &data)
void setFace(QAbstractTexture::CubeMapFace face)
void setLayer(int layer)
void setMipLevel(int mipLevel)
void setX(int x)
void setY(int y)
void setZ(int z)
void swap(Qt3DRender::QTextureDataUpdate &other)
int x() const
int y() const
int z() const

Detailed Description

The actual data content is contained in a QTextureImageDataPtr member. Additional members allow to specify the x, y, z offset of the content update as well as the eventual layer, mipLevel and face.

See also QAbstractTexture.

Member Function Documentation

QTextureDataUpdate::QTextureDataUpdate(const Qt3DRender::QTextureDataUpdate &other)

Default constructs an instance of QTextureDataUpdate.


Default constructs an instance of QTextureDataUpdate.

Qt3DRender::QTextureDataUpdate &QTextureDataUpdate::operator=(Qt3DRender::QTextureDataUpdate &&other)

Move-assignment operator.

Qt3DRender::QTextureDataUpdate &QTextureDataUpdate::operator=(const Qt3DRender::QTextureDataUpdate &other)

Copy-assignment operator.


Destroys the instance of QTextureDataUpdate.

Qt3DRender::QTextureImageDataPtr QTextureDataUpdate::data() const

See also setData().

QAbstractTexture::CubeMapFace QTextureDataUpdate::face() const

See also setFace().

int QTextureDataUpdate::layer() const

See also setLayer().

int QTextureDataUpdate::mipLevel() const

See also setMipLevel().

void QTextureDataUpdate::setData(const Qt3DRender::QTextureImageDataPtr &data)

See also data().

void QTextureDataUpdate::setFace(QAbstractTexture::CubeMapFace face)

See also face().

void QTextureDataUpdate::setLayer(int layer)

See also layer().

void QTextureDataUpdate::setMipLevel(int mipLevel)

See also mipLevel().

void QTextureDataUpdate::setX(int x)

See also x().

void QTextureDataUpdate::setY(int y)

See also y().

void QTextureDataUpdate::setZ(int z)

See also z().

void QTextureDataUpdate::swap(Qt3DRender::QTextureDataUpdate &other)

int QTextureDataUpdate::x() const

See also setX().

int QTextureDataUpdate::y() const

See also setY().

int QTextureDataUpdate::z() const

See also setZ().

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