QTextureImageData Class▲
-
Header: QTextureImageData
-
Since: Qt 5.5
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
-
qmake: QT += 3drender
Detailed Description▲
Member Function Documentation▲
QTextureImageData::QTextureImageData()▲
Constructs a new Qt3DRender::QTextureImageData.
int QTextureImageData::alignment() const▲
void QTextureImageData::cleanup()▲
Remove stored texture data and return the object to its initial state
QByteArray QTextureImageData::data(int layer = 0, int face = 0, int mipmapLevel = 0) const▲
Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel.
See Also▲
See also setData()
int QTextureImageData::depth() const▲
int QTextureImageData::faces() const▲
QOpenGLTexture::TextureFormat QTextureImageData::format() const▲
int QTextureImageData::height() const▲
bool QTextureImageData::isCompressed() const▲
Returns true if the stored texture is in a compressed format
int QTextureImageData::layers() const▲
int QTextureImageData::mipLevels() const▲
QOpenGLTexture::PixelFormat QTextureImageData::pixelFormat() const▲
QOpenGLTexture::PixelType QTextureImageData::pixelType() const▲
void QTextureImageData::setAlignment(int alignment)▲
void QTextureImageData::setData(const QByteArray &data, int blockSize, bool isCompressed = false)▲
Stores the data data with blocksize blockSize and if the data to be stored is compressed isCompressed.
See Also▲
See also data()
void QTextureImageData::setDepth(int depth)▲
void QTextureImageData::setFaces(int faces)▲
void QTextureImageData::setFormat(QOpenGLTexture::TextureFormat format)▲
void QTextureImageData::setHeight(int height)▲
void QTextureImageData::setImage(const QImage &image)▲
Copies the image image as raw data within this object.