Qt3DExtras.QTextureMaterial¶
The
QTextureMaterial
provides a default implementation of a simple unlit texture material. More…
Synopsis¶
Functions¶
def
isAlphaBlendingEnabled
()def
texture
()def
textureOffset
()def
textureTransform
()
Slots¶
def
setAlphaBlendingEnabled
(enabled)def
setTexture
(texture)def
setTextureOffset
(textureOffset)def
setTextureTransform
(matrix)
Signals¶
def
alphaBlendingEnabledChanged
(enabled)def
textureChanged
(texture)def
textureOffsetChanged
(textureOffset)def
textureTransformChanged
(textureTransform)
Detailed Description¶
This material uses an effect with a single render pass approach. Techniques are provided for OpenGL 2, OpenGL 3 or above as well as OpenGL ES 2.
-
class
PySide2.Qt3DExtras.Qt3DExtras.
QTextureMaterial
([parent=None])¶ - param parent
QNode
Constructs a new
QTextureMaterial
instance with parent objectparent
.
-
PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.
alphaBlendingEnabledChanged
(enabled)¶ - Parameters
enabled –
bool
-
PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.
isAlphaBlendingEnabled
()¶ - Return type
bool
-
PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.
setAlphaBlendingEnabled
(enabled)¶ - Parameters
enabled –
bool
See also
isAlphaBlendingEnabled()
-
PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.
setTexture
(texture)¶ - Parameters
texture –
QAbstractTexture
See also
texture()
-
PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.
setTextureOffset
(textureOffset)¶ - Parameters
textureOffset –
QVector2D
See also
textureOffset()
-
PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.
setTextureTransform
(matrix)¶ - Parameters
matrix –
QMatrix3x3
See also
textureTransform()
-
PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.
texture
()¶ - Return type
QAbstractTexture
See also
setTexture()
-
PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.
textureChanged
(texture)¶ - Parameters
texture –
QAbstractTexture
-
PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.
textureOffset
()¶ - Return type
QVector2D
See also
setTextureOffset()
-
PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.
textureOffsetChanged
(textureOffset)¶ - Parameters
textureOffset –
QVector2D
-
PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.
textureTransform
()¶ - Return type
QMatrix3x3
See also
setTextureTransform()
-
PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.
textureTransformChanged
(textureTransform)¶ - Parameters
textureTransform –
QMatrix3x3
© 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.