QTextureImageData stores data representing a texture. 更多...
| 頭: | #include <QTextureImageData> |
| qmake: | QT += 3drender |
| Since: | Qt 5.5 |
| QTextureImageData () | |
| 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 | 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 |
| QTextureImageData & | operator= (const QTextureImageData & other ) |
QTextureImageData stores data representing a texture.
構造新的 Qt3DRender::QTextureImageData .
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
另請參閱 setData ().
Returns the depth of the stored texture
另請參閱 setDepth ().
Returns the number of faces in the stored texture
另請參閱 setFaces ().
Returns the format of the stored texture
另請參閱 setFormat ().
Returns the height of the stored texture
另請參閱 setHeight ().
Returns true if the stored texture is in a compressed format
Returns the number of layers in the stored texture
另請參閱 setLayers ().
Returns the number of mip levels in the stored texture
另請參閱 setMipLevels ().
Returns the pixel format of the stored texture
另請參閱 setPixelFormat ().
Returns the pixel type of the stored texture
另請參閱 setPixelType ().
Store the data data with blocksize blockSize and if the data to be stored is compressed isCompressed
另請參閱 data ().
Sets the depth to depth . setDepth
另請參閱 depth ().
Sets the faces to faces . setFaces
另請參閱 faces ().
Sets the format to format .
另請參閱 format ().
Sets the height to height . setHeight
另請參閱 height ().
Copies the image image as raw data within this object
Sets the layers to layers . setLayers
另請參閱 layers ().
Sets the mip levels to mipLevels . setMipLevels
另請參閱 mipLevels ().
Sets the pixel format to pixelFormat . setPixelFormat
另請參閱 pixelFormat ().
Sets the pixel type to pixelType setPixelType
另請參閱 pixelType ().
Sets the target to target . target
另請參閱 target ().
Sets the width to width . setWidth
另請參閱 width ().
Returns the target for the stored texture
另請參閱 setTarget ().
Returns the width of the stored texture
另請參閱 setWidth ().
拷貝賦值運算符。