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
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.