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])露

Constructs a new QTextureMaterial instance with parent object parent .

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

enabled 鈥� bool

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

bool

Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.

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

enabled 鈥� bool

Indicates if the alpha information coming from the diffuse property will be taken into account during rendering. Defaults to false.

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

texture 鈥� PySide2.Qt3DRender.Qt3DRender.QAbstractTexture

Holds the current texture used by the material.

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

textureOffset 鈥� PySide2.QtGui.QVector2D

This is a utility property. It sets the translation component of the general texture transform matrix

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

matrix 鈥� PySide2.QtGui.QMatrix3x3

Holds the current texture transform. It is applied to texture coordinates at render time. Defaults to identity matrix.

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

PySide2.Qt3DRender.Qt3DRender.QAbstractTexture

Holds the current texture used by the material.

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

texture 鈥� PySide2.Qt3DRender.Qt3DRender.QAbstractTexture

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

PySide2.QtGui.QVector2D

This is a utility property. It sets the translation component of the general texture transform matrix

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

textureOffset 鈥� PySide2.QtGui.QVector2D

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

PySide2.QtGui.QMatrix3x3

Holds the current texture transform. It is applied to texture coordinates at render time. Defaults to identity matrix.

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

textureTransform 鈥� PySide2.QtGui.QMatrix3x3