QTextureImageData stores data representing a texture. More...
Header: | #include <QTextureImageData> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
Since: | Qt 5.5 |
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 |
Constructs a new Qt3DRender::QTextureImageData.
Returns the alignment requirement for the image.
See also setAlignment().
Remove stored texture data and return the object to its initial state
Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel.
See also setData().
Returns the depth of the stored texture
See also setDepth().
Returns the number of faces in the stored texture
See also setFaces().
Returns the format of the stored texture.
See also setFormat().
Returns the height of the stored texture
See also setHeight().
Returns true if the stored texture is in a compressed format
Returns the number of layers in the stored texture
See also setLayers().
Returns the number of mip levels in the stored texture
See also setMipLevels().
Returns the pixel format of the stored texture.
See also setPixelFormat().
Returns the pixel type of the stored texture.
See also setPixelType().
Sets the alignment requirements for the image.
See also alignment().
Stores the data data with blocksize blockSize and if the data to be stored is compressed isCompressed.
See also data().
Sets the depth to depth. setDepth
See also depth().
Sets the faces to faces. setFaces
See also faces().
Sets the format to format.
See also format().
Sets the height to height. setHeight
See also height().
Copies the image image as raw data within this object.
Sets the layers to layers. setLayers
See also layers().
Sets the mip levels to mipLevels. setMipLevels
See also mipLevels().
Sets the pixel format to pixelFormat.
See also pixelFormat().
Sets the pixel type to pixelType.
See also pixelType().
Sets the target to target.
See also target().
Sets the width to width. setWidth
See also width().
Returns the target for the stored texture.
See also setTarget().
Returns the width of the stored texture
See also setWidth().