QTextureImageData#

QTextureImageData stores data representing a texture. More

Synopsis#

Functions#

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#

class PySide6.Qt3DRender.Qt3DRender.QTextureImageData#

Constructs a new QTextureImageData .

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.alignment()#
Return type:

int

Returns the alignment requirement for the image.

See also

setAlignment()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.cleanup()#

Remove stored texture data and return the object to its initial state

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.data([layer=0[, face=0[, mipmapLevel=0]]])#
Parameters:
  • layer – int

  • face – int

  • mipmapLevel – int

Return type:

PySide6.QtCore.QByteArray

Returns the raw image data for the texture at layer layer, face face and mipmapLevel mipmapLevel.

See also

setData()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.depth()#
Return type:

int

Returns the depth of the stored texture

See also

setDepth()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.faces()#
Return type:

int

Returns the number of faces in the stored texture

See also

setFaces()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.format()#
Return type:

TextureFormat

Returns the format of the stored texture.

See also

setFormat()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.height()#
Return type:

int

Returns the height of the stored texture

See also

setHeight()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.isCompressed()#
Return type:

bool

Returns true if the stored texture is in a compressed format

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.layers()#
Return type:

int

Returns the number of layers in the stored texture

See also

setLayers()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.mipLevels()#
Return type:

int

Returns the number of mip levels in the stored texture

See also

setMipLevels()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.pixelFormat()#
Return type:

PixelFormat

Returns the pixel format of the stored texture.

See also

setPixelFormat()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.pixelType()#
Return type:

PixelType

Returns the pixel type of the stored texture.

See also

setPixelType()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.setAlignment(alignment)#
Parameters:

alignment – int

Sets the alignment requirements for the image.

See also

alignment()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.setData(data, blockSize[, isCompressed=false])#
Parameters:

Stores the data data with blocksize blockSize and if the data to be stored is compressed isCompressed.

See also

data()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.setDepth(depth)#
Parameters:

depth – int

Sets the depth to depth. setDepth

See also

depth()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.setFaces(faces)#
Parameters:

faces – int

Sets the faces to faces. setFaces

See also

faces()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.setFormat(format)#
Parameters:

formatTextureFormat

Sets the format to format.

See also

format()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.setHeight(height)#
Parameters:

height – int

Sets the height to height. setHeight

See also

height()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.setImage(arg__1)#
Parameters:

arg__1PySide6.QtGui.QImage

Copies the image image as raw data within this object.

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.setLayers(layers)#
Parameters:

layers – int

Sets the layers to layers. setLayers

See also

layers()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.setMipLevels(mipLevels)#
Parameters:

mipLevels – int

Sets the mip levels to mipLevels. setMipLevels

See also

mipLevels()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.setPixelFormat(pixelFormat)#
Parameters:

pixelFormatPixelFormat

Sets the pixel format to pixelFormat.

See also

pixelFormat()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.setPixelType(pixelType)#
Parameters:

pixelTypePixelType

Sets the pixel type to pixelType.

See also

pixelType()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.setTarget(target)#
Parameters:

targetTarget

Sets the target to target.

See also

target()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.setWidth(width)#
Parameters:

width – int

Sets the width to width. setWidth

See also

width()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.target()#
Return type:

Target

Returns the target for the stored texture.

See also

setTarget()

PySide6.Qt3DRender.Qt3DRender.QTextureImageData.width()#
Return type:

int

Returns the width of the stored texture

See also

setWidth()