QTextureLoader

Handles the texture loading and setting the texture’s properties. More

Inheritance diagram of PySide6.Qt3DRender.Qt3DRender.QTextureLoader

Synopsis

Functions

Detailed Description

class PySide6.Qt3DRender.Qt3DRender.QTextureLoader([parent=None])
Parameters

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QTextureLoader instance with parent as parent.

Note that by default, if not contradicted by the file metadata, the loaded texture will have the following properties set: - wrapMode set to Repeat - minificationFilter set to LinearMipMapLinear - magnificationFilter set to Linear - generateMipMaps set to true - maximumAnisotropy set to 16.0f - target set to TargetAutomatic

PySide6.Qt3DRender.Qt3DRender.QTextureLoader.isMirrored()
Return type

bool

PySide6.Qt3DRender.Qt3DRender.QTextureLoader.mirroredChanged(mirrored)
Parameters

mirrored – bool

PySide6.Qt3DRender.Qt3DRender.QTextureLoader.setMirrored(mirrored)
Parameters

mirrored – bool

Sets mirroring to mirrored.

Note

This internally triggers a call to update the data generator.

See also

isMirrored()

PySide6.Qt3DRender.Qt3DRender.QTextureLoader.setSource(source)
Parameters

sourcePySide6.QtCore.QUrl

Sets the texture loader source to source. source

See also

source()

PySide6.Qt3DRender.Qt3DRender.QTextureLoader.source()
Return type

PySide6.QtCore.QUrl

See also

setSource()

PySide6.Qt3DRender.Qt3DRender.QTextureLoader.sourceChanged(source)
Parameters

sourcePySide6.QtCore.QUrl