Qt3DRender.QTextureLoader

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

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QTextureLoader

Synopsis

Functions

Slots

Signals

Detailed Description

class PySide2.Qt3DRender.Qt3DRender.QTextureLoader([parent=None])
param parent

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

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

bool

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

mirroredbool

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

mirroredbool

Sets mirroring to mirrored .

Note

This internally triggers a call to update the data generator.

See also

isMirrored()

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

sourceQUrl

Sets the texture loader source to source . source

See also

source()

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

QUrl

See also

setSource()

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

sourceQUrl