QTextureMaterial#
The QTextureMaterial
provides a default implementation of a simple unlit texture material. More…
Synopsis#
Properties#
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)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
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 PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QTextureMaterial
instance with parent object parent
.
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.alphaBlending: bool#
Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.
- Access functions:
setAlphaBlendingEnabled
(enabled)Signal
alphaBlendingEnabledChanged
(enabled)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.texture: PySide6.Qt3DRender.Qt3DRender.QAbstractTexture#
Holds the current texture used by the material.
- Access functions:
texture
()setTexture
(texture)Signal
textureChanged
(texture)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.textureOffset: PySide6.QtGui.QVector2D#
This is a utility property. It sets the translation component of the general texture transform matrix
- Access functions:
setTextureOffset
(textureOffset)Signal
textureOffsetChanged
(textureOffset)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.textureTransform: PySide6.QtGui.QMatrix3x3#
Holds the current texture transform. It is applied to texture coordinates at render time. Defaults to identity matrix.
- Access functions:
setTextureTransform
(matrix)Signal
textureTransformChanged
(textureTransform)
- PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.alphaBlendingEnabledChanged(enabled)#
- Parameters:
enabled – bool
Notification signal of property alphaBlending
.
- PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.isAlphaBlendingEnabled()#
- Return type:
bool
Getter of property alphaBlending
.
- PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.setAlphaBlendingEnabled(enabled)#
- Parameters:
enabled – bool
See also
Setter of property alphaBlending
.
- PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.setTexture(texture)#
- Parameters:
See also
Setter of property texture
.
- PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.setTextureOffset(textureOffset)#
- Parameters:
textureOffset –
PySide6.QtGui.QVector2D
See also
Setter of property textureOffset
.
- PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.setTextureTransform(matrix)#
- Parameters:
matrix –
PySide6.QtGui.QMatrix3x3
See also
Setter of property textureTransform
.
- PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.texture()#
- Return type:
See also
Getter of property texture
.
- PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.textureChanged(texture)#
- Parameters:
Notification signal of property texture
.
- PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.textureOffset()#
- Return type:
See also
Getter of property textureOffset
.
- PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.textureOffsetChanged(textureOffset)#
- Parameters:
textureOffset –
PySide6.QtGui.QVector2D
Notification signal of property textureOffset
.
- PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.textureTransform()#
- Return type:
See also
Getter of property textureTransform
.
- PySide6.Qt3DExtras.Qt3DExtras.QTextureMaterial.textureTransformChanged(textureTransform)#
- Parameters:
textureTransform –
PySide6.QtGui.QMatrix3x3
Notification signal of property textureTransform
.