QTextureImageData露

QTextureImageData stores data representing a texture. More鈥�

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QTextureImageData

Synopsis露

Functions露

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:

PySide2.QtCore.QByteArray

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

See also

setData()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.depth()露
Return type:

int

Returns the depth of the stored texture

See also

setDepth()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.faces()露
Return type:

int

Returns the number of faces in the stored texture

See also

setFaces()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.format()露
Return type:

TextureFormat

Returns the format of the stored texture

See also

setFormat()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.height()露
Return type:

int

Returns the height of the stored texture

See also

setHeight()

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

setLayers()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.mipLevels()露
Return type:

int

Returns the number of mip levels in the stored texture

See also

setMipLevels()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.pixelFormat()露
Return type:

PixelFormat

Returns the pixel format of the stored texture

See also

setPixelFormat()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.pixelType()露
Return type:

PixelType

Returns the pixel type of the stored texture

See also

setPixelType()

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

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

See also

data()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.setDepth(depth)露
Parameters:

depth 鈥� int

Sets the depth to depth . setDepth

See also

depth()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.setFaces(faces)露
Parameters:

faces 鈥� int

Sets the faces to faces . setFaces

See also

faces()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.setFormat(format)露
Parameters:

format 鈥� TextureFormat

Sets the format to format . **

See also

format()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.setHeight(height)露
Parameters:

height 鈥� int

Sets the height to height . setHeight

See also

height()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.setImage(arg__1)露
Parameters:

arg__1 鈥� PySide2.QtGui.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 . setLayers

See also

layers()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.setMipLevels(mipLevels)露
Parameters:

mipLevels 鈥� int

Sets the mip levels to mipLevels . setMipLevels

See also

mipLevels()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.setPixelFormat(pixelFormat)露
Parameters:

pixelFormat 鈥� PixelFormat

Sets the pixel format to pixelFormat . setPixelFormat

See also

pixelFormat()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.setPixelType(pixelType)露
Parameters:

pixelType 鈥� PixelType

Sets the pixel type to pixelType setPixelType

See also

pixelType()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.setTarget(target)露
Parameters:

target 鈥� Target

Sets the target to target . target

See also

target()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.setWidth(width)露
Parameters:

width 鈥� int

Sets the width to width . setWidth

See also

width()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.target()露
Return type:

Target

Returns the target for the stored texture

See also

setTarget()

PySide2.Qt3DRender.Qt3DRender.QTextureImageData.width()露
Return type:

int

Returns the width of the stored texture

See also

setWidth()