Qt3DRender.QTextureLoader¶
Handles the texture loading and setting the texture’s properties. More…

Synopsis¶
Functions¶
def
isMirrored
()def
source
()
Slots¶
def
setMirrored
(mirrored)def
setSource
(source)
Signals¶
def
mirroredChanged
(mirrored)def
sourceChanged
(source)
Detailed Description¶
-
class
PySide2.Qt3DRender.Qt3DRender.
QTextureLoader
([parent=None])¶ - param parent
QNode
Constructs a new
QTextureLoader
instance withparent
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 toLinearMipMapLinear
-magnificationFilter
set to Linear -generateMipMaps
set to true -maximumAnisotropy
set to 16.0f - target set toTargetAutomatic
-
PySide2.Qt3DRender.Qt3DRender.QTextureLoader.
isMirrored
()¶ - Return type
bool
-
PySide2.Qt3DRender.Qt3DRender.QTextureLoader.
mirroredChanged
(mirrored)¶ - Parameters
mirrored –
bool
-
PySide2.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()
-
PySide2.Qt3DRender.Qt3DRender.QTextureLoader.
setSource
(source)¶ - Parameters
source –
QUrl
Sets the texture loader source to
source
. sourceSee also
source()
-
PySide2.Qt3DRender.Qt3DRender.QTextureLoader.
source
()¶ - Return type
QUrl
See also
setSource()
-
PySide2.Qt3DRender.Qt3DRender.QTextureLoader.
sourceChanged
(source)¶ - Parameters
source –
QUrl