Qt3DRender.QTextureData

The QTextureData class stores texture information such as the target, height, width, depth, layers, wrap, and if mipmaps are enabled. More

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QTextureData

Synopsis

Functions

Detailed Description

class PySide2.Qt3DRender.Qt3DRender.QTextureData

Creates a new QTextureData instance.

PySide2.Qt3DRender.Qt3DRender.QTextureData.addImageData(imageData)
Parameters

imageDataQSharedPointer

Adds an extra image layer to the texture using imageData .

Note

The texture image should be loaded with the size specified on the texture. However, if no size is specified, the size of the first texture image file is used as default.

PySide2.Qt3DRender.Qt3DRender.QTextureData.comparisonFunction()
Return type

ComparisonFunction

Returns the current comparison function.

See also

setComparisonFunction()

PySide2.Qt3DRender.Qt3DRender.QTextureData.comparisonMode()
Return type

ComparisonMode

Returns the current comparison mode.

See also

setComparisonMode()

PySide2.Qt3DRender.Qt3DRender.QTextureData.depth()
Return type

int

Returns the texture depth.

See also

setDepth()

PySide2.Qt3DRender.Qt3DRender.QTextureData.format()
Return type

TextureFormat

Returns the texture format

See also

setFormat()

PySide2.Qt3DRender.Qt3DRender.QTextureData.height()
Return type

int

Returns the texture height.

See also

setHeight()

PySide2.Qt3DRender.Qt3DRender.QTextureData.imageData()
Return type

Returns the data of the images used by this texture.

PySide2.Qt3DRender.Qt3DRender.QTextureData.isAutoMipMapGenerationEnabled()
Return type

bool

Returns whether the texture has auto mipmap generation enabled.

PySide2.Qt3DRender.Qt3DRender.QTextureData.layers()
Return type

int

Returns the texture layers.

See also

setLayers()

PySide2.Qt3DRender.Qt3DRender.QTextureData.magnificationFilter()
Return type

Filter

Returns the current magnification filter.

See also

setMagnificationFilter()

PySide2.Qt3DRender.Qt3DRender.QTextureData.maximumAnisotropy()
Return type

float

Returns the current maximum anisotropy.

See also

setMaximumAnisotropy()

PySide2.Qt3DRender.Qt3DRender.QTextureData.minificationFilter()
Return type

Filter

Returns the current minification filter.

See also

setMinificationFilter()

PySide2.Qt3DRender.Qt3DRender.QTextureData.setAutoMipMapGenerationEnabled(isAutoMipMapGenerationEnabled)
Parameters

isAutoMipMapGenerationEnabledbool

Sets whether the texture has automatic mipmap generation enabled, to autoMipMap .

See also

isAutoMipMapGenerationEnabled()

PySide2.Qt3DRender.Qt3DRender.QTextureData.setComparisonFunction(comparisonFunction)
Parameters

comparisonFunctionComparisonFunction

Sets the comparison function to comparisonFunction .

See also

comparisonFunction()

PySide2.Qt3DRender.Qt3DRender.QTextureData.setComparisonMode(comparisonMode)
Parameters

comparisonModeComparisonMode

Sets the comparison mode to comparisonMode .

See also

comparisonMode()

PySide2.Qt3DRender.Qt3DRender.QTextureData.setDepth(depth)
Parameters

depthint

Sets the texture depth to depth

See also

depth()

PySide2.Qt3DRender.Qt3DRender.QTextureData.setFormat(arg__1)
Parameters

arg__1TextureFormat

Sets the texture format to format .

See also

format()

PySide2.Qt3DRender.Qt3DRender.QTextureData.setHeight(height)
Parameters

heightint

Sets the target height to height .

See also

height()

PySide2.Qt3DRender.Qt3DRender.QTextureData.setLayers(layers)
Parameters

layersint

Sets the texture layers to layers .

See also

layers()

PySide2.Qt3DRender.Qt3DRender.QTextureData.setMagnificationFilter(filter)
Parameters

filterFilter

Sets the magnification filter to filter .

See also

magnificationFilter()

PySide2.Qt3DRender.Qt3DRender.QTextureData.setMaximumAnisotropy(maximumAnisotropy)
Parameters

maximumAnisotropyfloat

Sets the maximum anisotropy to maximumAnisotropy .

See also

maximumAnisotropy()

PySide2.Qt3DRender.Qt3DRender.QTextureData.setMinificationFilter(filter)
Parameters

filterFilter

Sets the minification filter to filter .

See also

minificationFilter()

PySide2.Qt3DRender.Qt3DRender.QTextureData.setTarget(target)
Parameters

targetTarget

Sets the target texture to target .

See also

target()

PySide2.Qt3DRender.Qt3DRender.QTextureData.setWidth(width)
Parameters

widthint

Sets the texture width to width .

See also

width()

PySide2.Qt3DRender.Qt3DRender.QTextureData.setWrapModeX(wrapModeX)
Parameters

wrapModeXWrapMode

Sets the wrap mode X to wrapModeX .

See also

wrapModeX()

PySide2.Qt3DRender.Qt3DRender.QTextureData.setWrapModeY(wrapModeY)
Parameters

wrapModeYWrapMode

Sets the wrap mode Y to wrapModeY .

See also

wrapModeY()

PySide2.Qt3DRender.Qt3DRender.QTextureData.setWrapModeZ(wrapModeZ)
Parameters

wrapModeZWrapMode

Sets the wrap mode Z to wrapModeZ .

See also

wrapModeZ()

PySide2.Qt3DRender.Qt3DRender.QTextureData.target()
Return type

Target

Returns the texture data target.

See also

setTarget()

PySide2.Qt3DRender.Qt3DRender.QTextureData.width()
Return type

int

Returns the texture width.

See also

setWidth()

PySide2.Qt3DRender.Qt3DRender.QTextureData.wrapModeX()
Return type

WrapMode

Returns the current wrap mode X.

See also

setWrapModeX()

PySide2.Qt3DRender.Qt3DRender.QTextureData.wrapModeY()
Return type

WrapMode

Returns the current wrap mode Y.

See also

setWrapModeY()

PySide2.Qt3DRender.Qt3DRender.QTextureData.wrapModeZ()
Return type

WrapMode

Returns the current wrap mode Z.

See also

setWrapModeZ()