class QTextureData

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

Synopsis

Methods

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__()

Creates a new QTextureData instance.

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.

comparisonFunction()
Return type:

ComparisonFunction

Returns the current comparison function.

See also

setComparisonFunction()

comparisonMode()
Return type:

ComparisonMode

Returns the current comparison mode.

See also

setComparisonMode()

depth()
Return type:

int

Returns the texture depth.

See also

setDepth()

format()
Return type:

TextureFormat

Returns the texture format

See also

setFormat()

height()
Return type:

int

Returns the texture height.

See also

setHeight()

imageData()
Return type:

.list of QSharedPointerQt3DRender.QTextureImageData

Returns the data of the images used by this texture.

isAutoMipMapGenerationEnabled()
Return type:

bool

Returns whether the texture has auto mipmap generation enabled.

layers()
Return type:

int

Returns the texture layers.

See also

setLayers()

magnificationFilter()
Return type:

Filter

Returns the current magnification filter.

See also

setMagnificationFilter()

maximumAnisotropy()
Return type:

float

Returns the current maximum anisotropy.

See also

setMaximumAnisotropy()

minificationFilter()
Return type:

Filter

Returns the current minification filter.

See also

setMinificationFilter()

setAutoMipMapGenerationEnabled(isAutoMipMapGenerationEnabled)
Parameters:

isAutoMipMapGenerationEnabled – bool

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

See also

isAutoMipMapGenerationEnabled()

setComparisonFunction(comparisonFunction)
Parameters:

comparisonFunctionComparisonFunction

Sets the comparison function to comparisonFunction.

See also

comparisonFunction()

setComparisonMode(comparisonMode)
Parameters:

comparisonModeComparisonMode

Sets the comparison mode to comparisonMode.

See also

comparisonMode()

setDepth(depth)
Parameters:

depth – int

Sets the texture depth to depth

See also

depth()

setFormat(arg__1)
Parameters:

arg__1TextureFormat

Sets the texture format to format.

See also

format()

setHeight(height)
Parameters:

height – int

Sets the target height to height.

See also

height()

setLayers(layers)
Parameters:

layers – int

Sets the texture layers to layers.

See also

layers()

setMagnificationFilter(filter)
Parameters:

filterFilter

Sets the magnification filter to filter.

See also

magnificationFilter()

setMaximumAnisotropy(maximumAnisotropy)
Parameters:

maximumAnisotropy – float

Sets the maximum anisotropy to maximumAnisotropy.

See also

maximumAnisotropy()

setMinificationFilter(filter)
Parameters:

filterFilter

Sets the minification filter to filter.

See also

minificationFilter()

setTarget(target)
Parameters:

targetTarget

Sets the target texture to target.

See also

target()

setWidth(width)
Parameters:

width – int

Sets the texture width to width.

See also

width()

setWrapModeX(wrapModeX)
Parameters:

wrapModeXWrapMode

Sets the wrap mode X to wrapModeX.

See also

wrapModeX()

setWrapModeY(wrapModeY)
Parameters:

wrapModeYWrapMode

Sets the wrap mode Y to wrapModeY.

See also

wrapModeY()

setWrapModeZ(wrapModeZ)
Parameters:

wrapModeZWrapMode

Sets the wrap mode Z to wrapModeZ.

See also

wrapModeZ()

target()
Return type:

Target

Returns the texture data target.

See also

setTarget()

width()
Return type:

int

Returns the texture width.

See also

setWidth()

wrapModeX()
Return type:

WrapMode

Returns the current wrap mode X.

See also

setWrapModeX()

wrapModeY()
Return type:

WrapMode

Returns the current wrap mode Y.

See also

setWrapModeY()

wrapModeZ()
Return type:

WrapMode

Returns the current wrap mode Z.

See also

setWrapModeZ()