- class QTextureImageData¶
QTextureImageData
stores data representing a texture. More…Synopsis¶
Methods¶
def
__init__()
def
alignment()
def
cleanup()
def
data()
def
depth()
def
faces()
def
format()
def
height()
def
isCompressed()
def
layers()
def
mipLevels()
def
pixelFormat()
def
pixelType()
def
setAlignment()
def
setData()
def
setDepth()
def
setFaces()
def
setFormat()
def
setHeight()
def
setImage()
def
setLayers()
def
setMipLevels()
def
setPixelFormat()
def
setPixelType()
def
setTarget()
def
setWidth()
def
target()
def
width()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
- __init__()¶
Constructs a new
QTextureImageData
.- alignment()¶
- Return type:
int
Returns the alignment requirement for the image.
See also
setAlignment()
- cleanup()¶
Remove stored texture data and return the object to its initial state
- data([layer=0[, face=0[, mipmapLevel=0]]])¶
- Parameters:
layer – int
face – int
mipmapLevel – int
- Return type:
Returns the raw image data for the texture at layer
layer
, faceface
and mipmapLevelmipmapLevel
.See also
setData()
- depth()¶
- Return type:
int
Returns the depth of the stored texture
See also
setDepth()
- faces()¶
- Return type:
int
Returns the number of faces in the stored texture
See also
setFaces()
- format()¶
- Return type:
Returns the format of the stored texture.
See also
setFormat()
- height()¶
- Return type:
int
Returns the height of the stored texture
See also
setHeight()
- isCompressed()¶
- Return type:
bool
Returns true if the stored texture is in a compressed format
- layers()¶
- Return type:
int
Returns the number of layers in the stored texture
See also
setLayers()
- mipLevels()¶
- Return type:
int
Returns the number of mip levels in the stored texture
See also
setMipLevels()
- pixelFormat()¶
- Return type:
Returns the pixel format of the stored texture.
See also
setPixelFormat()
Returns the pixel type of the stored texture.
See also
setPixelType()
- setAlignment(alignment)¶
- Parameters:
alignment – int
Sets the
alignment
requirements for the image.See also
alignment()
- setData(data, blockSize[, isCompressed=false])¶
- Parameters:
data –
QByteArray
blockSize – int
isCompressed – bool
Stores the data
data
with blocksizeblockSize
and if the data to be stored is compressedisCompressed
.See also
data()
- setDepth(depth)¶
- Parameters:
depth – int
Sets the depth to
depth
. setDepthSee also
depth()
- setFaces(faces)¶
- Parameters:
faces – int
Sets the faces to
faces
. setFacesSee also
faces()
- setFormat(format)¶
- Parameters:
format –
TextureFormat
Sets the format to
format
.See also
format()
- setHeight(height)¶
- Parameters:
height – int
Sets the height to
height
. setHeightSee also
height()
Copies the image
image
as raw data within this object.- setLayers(layers)¶
- Parameters:
layers – int
Sets the layers to
layers
. setLayersSee also
layers()
- setMipLevels(mipLevels)¶
- Parameters:
mipLevels – int
Sets the mip levels to
mipLevels
. setMipLevelsSee also
mipLevels()
- setPixelFormat(pixelFormat)¶
- Parameters:
pixelFormat –
PixelFormat
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()
- setWidth(width)¶
- Parameters:
width – int
Sets the width to
width
. setWidthSee also
width()
Returns the target for the stored texture.
See also
setTarget()
- width()¶
- Return type:
int
Returns the width of the stored texture
See also
setWidth()