QBlendEquationArguments#

Encapsulates blending information: specifies how the incoming values (what’s going to be drawn) are going to affect the existing values (what is already drawn). More

Inheritance diagram of PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments

Synopsis#

Properties#

Functions#

Slots#

Signals#

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#

OpenGL pre-3.0: Set the same blend state for all draw buffers (one QBlendEquationArguments ) OpenGL 3.0-pre4.0: Set the same blend state for all draw buffers, but can disable blending for particular buffers (one QBlendEquationArguments for setting glBlendFunc, n QBlendEquationArgumentss for enabling/disabling Draw Buffers) OpenGL 4.0+: Can set blend state individually for each draw buffer.

class PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments([parent=None])#
Parameters:

parentPySide6.Qt3DCore.Qt3DCore.QNode

The constructor creates a new blend state object with the specified parent.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.bufferIndex: int#

Specifies the index of the Draw Buffer that this BlendEquationArguments applies to. If negative, this will apply to all Draw Buffers.

Access functions:
property PᅟySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.destinationAlpha: Blending#
Access functions:
property PᅟySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.destinationRgb: Blending#
Access functions:
property PᅟySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.sourceAlpha: Blending#
Access functions:
property PᅟySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.sourceRgb: Blending#
Access functions:
PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.Blending#

Constant

Description

Qt3DRender.QBlendEquationArguments.Zero

GL_ZERO

Qt3DRender.QBlendEquationArguments.One

GL_ONE

Qt3DRender.QBlendEquationArguments.SourceColor

GL_SRC_COLOR

Qt3DRender.QBlendEquationArguments.SourceAlpha

GL_SRC_ALPHA

Qt3DRender.QBlendEquationArguments.Source1Alpha

GL_SRC1_ALPHA

Qt3DRender.QBlendEquationArguments.Source1Color

GL_SRC1_COLOR

Qt3DRender.QBlendEquationArguments.DestinationColor

GL_DST_COLOR

Qt3DRender.QBlendEquationArguments.DestinationAlpha

GL_DST_ALPHA

Qt3DRender.QBlendEquationArguments.SourceAlphaSaturate

GL_SRC_ALPHA_SATURATE

Qt3DRender.QBlendEquationArguments.ConstantColor

0GL_CONSTANT_COLOR

Qt3DRender.QBlendEquationArguments.ConstantAlpha

GL_CONSTANT_ALPHA

Qt3DRender.QBlendEquationArguments.OneMinusSourceColor

GL_ONE_MINUS_SRC_COLOR

Qt3DRender.QBlendEquationArguments.OneMinusSourceAlpha

GL_ONE_MINUS_SRC_ALPHA

Qt3DRender.QBlendEquationArguments.OneMinusDestinationAlpha

GL_ONE_MINUS_DST_ALPHA

Qt3DRender.QBlendEquationArguments.OneMinusDestinationColor

GL_ONE_MINUS_DST_COLOR

Qt3DRender.QBlendEquationArguments.OneMinusConstantColor

GL_ONE_MINUS_CONSTANT_COLOR

Qt3DRender.QBlendEquationArguments.OneMinusConstantAlpha

GL_ONE_MINUS_CONSTANT_ALPHA

Qt3DRender.QBlendEquationArguments.OneMinusSource1Alpha

GL_ONE_MINUS_SRC1_ALPHA

Qt3DRender.QBlendEquationArguments.OneMinusSource1Color

GL_ONE_MINUS_SRC1_COLOR

Qt3DRender.QBlendEquationArguments.OneMinusSource1Color0

GL_ONE_MINUS_SRC1_COLOR (deprecated)

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.bufferIndex()#
Return type:

int

See also

setBufferIndex()

Getter of property bufferIndex .

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.bufferIndexChanged(index)#
Parameters:

index – int

Notification signal of property bufferIndex .

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.destinationAlpha()#
Return type:

Blending

Getter of property destinationAlpha .

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.destinationAlphaChanged(destinationAlpha)#
Parameters:

destinationAlphaBlending

Notification signal of property destinationAlpha .

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.destinationRgb()#
Return type:

Blending

Getter of property destinationRgb .

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.destinationRgbChanged(destinationRgb)#
Parameters:

destinationRgbBlending

Notification signal of property destinationRgb .

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.destinationRgbaChanged(destinationRgba)#
Parameters:

destinationRgbaBlending

Notify that both destinationRgb and destinationAlpha properties have changed to destinationRgba.

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.setBufferIndex(index)#
Parameters:

index – int

See also

bufferIndex()

Setter of property bufferIndex .

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.setDestinationAlpha(destinationAlpha)#
Parameters:

destinationAlphaBlending

Setter of property destinationAlpha .

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.setDestinationRgb(destinationRgb)#
Parameters:

destinationRgbBlending

See also

destinationRgb()

Setter of property destinationRgb .

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.setDestinationRgba(destinationRgba)#
Parameters:

destinationRgbaBlending

Change both destinationRgb and destinationAlpha properties to destinationRgba.

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.setSourceAlpha(sourceAlpha)#
Parameters:

sourceAlphaBlending

See also

sourceAlpha()

Setter of property sourceAlpha .

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.setSourceRgb(sourceRgb)#
Parameters:

sourceRgbBlending

See also

sourceRgb()

Setter of property sourceRgb .

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.setSourceRgba(sourceRgba)#
Parameters:

sourceRgbaBlending

Change both sourceRgb and sourceAlpha properties to sourceRgba.

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.sourceAlpha()#
Return type:

Blending

See also

setSourceAlpha()

Getter of property sourceAlpha .

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.sourceAlphaChanged(sourceAlpha)#
Parameters:

sourceAlphaBlending

Notification signal of property sourceAlpha .

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.sourceRgb()#
Return type:

Blending

See also

setSourceRgb()

Getter of property sourceRgb .

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.sourceRgbChanged(sourceRgb)#
Parameters:

sourceRgbBlending

Notification signal of property sourceRgb .

PySide6.Qt3DRender.Qt3DRender.QBlendEquationArguments.sourceRgbaChanged(sourceRgba)#
Parameters:

sourceRgbaBlending

Notify that both sourceRgb and sourceAlpha properties have changed to sourceRgba.