Qt3DRender.QTextureImageData¶
QTextureImageData
stores data representing a texture. More…

Synopsis¶
Functions¶
def
cleanup
()def
data
([layer=0[, face=0[, mipmapLevel=0]]])def
depth
()def
faces
()def
format
()def
height
()def
isCompressed
()def
layers
()def
mipLevels
()def
pixelFormat
()def
pixelType
()def
setData
(data, blockSize[, isCompressed=false])def
setDepth
(depth)def
setFaces
(faces)def
setFormat
(format)def
setHeight
(height)def
setImage
(arg__1)def
setLayers
(layers)def
setMipLevels
(mipLevels)def
setPixelFormat
(pixelFormat)def
setPixelType
(pixelType)def
setTarget
(target)def
setWidth
(width)def
target
()def
width
()
Detailed Description¶
-
class
PySide2.Qt3DRender.Qt3DRender.
QTextureImageData
¶ Constructs a new
QTextureImageData
.
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
cleanup
()¶ Remove stored texture data and return the object to its initial state
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
data
([layer=0[, face=0[, mipmapLevel=0]]])¶ - Parameters
layer –
int
face –
int
mipmapLevel –
int
- Return type
QByteArray
Returns the raw image data for the texture at layer
layer
, faceface
and mipmapLevelmipmapLevel
See also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
depth
()¶ - Return type
int
Returns the depth of the stored texture
See also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
faces
()¶ - Return type
int
Returns the number of faces in the stored texture
See also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
format
()¶ - Return type
TextureFormat
Returns the format of the stored texture
See also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
height
()¶ - Return type
int
Returns the height of the stored texture
See also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
isCompressed
()¶ - Return type
bool
Returns true if the stored texture is in a compressed format
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
layers
()¶ - Return type
int
Returns the number of layers in the stored texture
See also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
mipLevels
()¶ - Return type
int
Returns the number of mip levels in the stored texture
See also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
pixelFormat
()¶ - Return type
PixelFormat
Returns the pixel format of the stored texture
See also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
pixelType
()¶ - Return type
PixelType
Returns the pixel type of the stored texture
See also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
setData
(data, blockSize[, isCompressed=false])¶ - Parameters
data –
QByteArray
blockSize –
int
isCompressed –
bool
Store the data
data
with blocksizeblockSize
and if the data to be stored is compressedisCompressed
See also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
setDepth
(depth)¶ - Parameters
depth –
int
Sets the depth to
depth
. setDepthSee also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
setFaces
(faces)¶ - Parameters
faces –
int
Sets the faces to
faces
. setFacesSee also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
setFormat
(format)¶ - Parameters
format –
TextureFormat
Sets the format to
format
. **See also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
setHeight
(height)¶ - Parameters
height –
int
Sets the height to
height
. setHeightSee also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
setImage
(arg__1)¶ - Parameters
arg__1 –
QImage
Copies the image
image
as raw data within this object
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
setLayers
(layers)¶ - Parameters
layers –
int
Sets the layers to
layers
. setLayersSee also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
setMipLevels
(mipLevels)¶ - Parameters
mipLevels –
int
Sets the mip levels to
mipLevels
. setMipLevelsSee also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
setPixelFormat
(pixelFormat)¶ - Parameters
pixelFormat –
PixelFormat
Sets the pixel format to
pixelFormat
. setPixelFormatSee also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
setPixelType
(pixelType)¶ - Parameters
pixelType –
PixelType
Sets the pixel type to
pixelType
setPixelTypeSee also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
setTarget
(target)¶ - Parameters
target –
Target
Sets the target to
target
. targetSee also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
setWidth
(width)¶ - Parameters
width –
int
Sets the width to
width
. setWidthSee also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
target
()¶ - Return type
Target
Returns the target for the stored texture
See also
-
PySide2.Qt3DRender.Qt3DRender.QTextureImageData.
width
()¶ - Return type
int
Returns the width of the stored texture
See also
© 2020 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.