Qt3DExtras.QTextureMaterial

The QTextureMaterial provides a default implementation of a simple unlit texture material. More

Inheritance diagram of PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial

Synopsis

Functions

Slots

Signals

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 object parent .

PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.alphaBlendingEnabledChanged(enabled)
Parameters

enabledbool

PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.isAlphaBlendingEnabled()
Return type

bool

PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.setAlphaBlendingEnabled(enabled)
Parameters

enabledbool

PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.setTexture(texture)
Parameters

textureQAbstractTexture

See also

texture()

PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.setTextureOffset(textureOffset)
Parameters

textureOffsetQVector2D

See also

textureOffset()

PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.setTextureTransform(matrix)
Parameters

matrixQMatrix3x3

PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.texture()
Return type

QAbstractTexture

See also

setTexture()

PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.textureChanged(texture)
Parameters

textureQAbstractTexture

PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.textureOffset()
Return type

QVector2D

PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.textureOffsetChanged(textureOffset)
Parameters

textureOffsetQVector2D

PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.textureTransform()
Return type

QMatrix3x3

PySide2.Qt3DExtras.Qt3DExtras.QTextureMaterial.textureTransformChanged(textureTransform)
Parameters

textureTransformQMatrix3x3