- class 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…
Synopsis#
Properties#
Methods#
def
__init__()
def
bufferIndex()
def
destinationRgb()
def
sourceAlpha()
def
sourceRgb()
Slots#
def
setBufferIndex()
def
setSourceAlpha()
def
setSourceRgb()
def
setSourceRgba()
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 (oneQBlendEquationArguments
for setting glBlendFunc, n QBlendEquationArgumentss for enabling/disabling Draw Buffers) OpenGL 4.0+: Can set blend state individually for each draw buffer.- class 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)
Note
Properties can be used directly when
from __feature__ import true_property
is used or via accessor functions otherwise.- property 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 destinationAlphaᅟ: Qt3DRender.QBlendEquationArguments.Blending#
- Access functions:
- property destinationRgbᅟ: Qt3DRender.QBlendEquationArguments.Blending#
- Access functions:
- property sourceAlphaᅟ: Qt3DRender.QBlendEquationArguments.Blending#
- Access functions:
- property sourceRgbᅟ: Qt3DRender.QBlendEquationArguments.Blending#
- Access functions:
- __init__([parent=None])#
- Parameters:
parent –
QNode
The constructor creates a new blend state object with the specified
parent
.- bufferIndex()#
- Return type:
int
See also
setBufferIndex()
Getter of property
bufferIndexᅟ
.- bufferIndexChanged(index)#
- Parameters:
index – int
Notification signal of property
bufferIndexᅟ
.- destinationAlpha()#
- Return type:
Blending
See also
setDestinationAlpha()
Getter of property
destinationAlphaᅟ
.- destinationAlphaChanged(destinationAlpha)#
- Parameters:
destinationAlpha –
Blending
Notification signal of property
destinationAlphaᅟ
.- destinationRgb()#
- Return type:
Blending
See also
setDestinationRgb()
Getter of property
destinationRgbᅟ
.- destinationRgbChanged(destinationRgb)#
- Parameters:
destinationRgb –
Blending
Notification signal of property
destinationRgbᅟ
.- destinationRgbaChanged(destinationRgba)#
- Parameters:
destinationRgba –
Blending
Notify that both
destinationRgb
anddestinationAlpha
properties have changed todestinationRgba
.- setBufferIndex(index)#
- Parameters:
index – int
See also
bufferIndex()
Setter of property
bufferIndexᅟ
.- setDestinationAlpha(destinationAlpha)#
- Parameters:
destinationAlpha –
Blending
See also
destinationAlpha()
Setter of property
destinationAlphaᅟ
.- setDestinationRgb(destinationRgb)#
- Parameters:
destinationRgb –
Blending
See also
destinationRgb()
Setter of property
destinationRgbᅟ
.- setDestinationRgba(destinationRgba)#
- Parameters:
destinationRgba –
Blending
Change both
destinationRgb
anddestinationAlpha
properties todestinationRgba
.- setSourceAlpha(sourceAlpha)#
- Parameters:
sourceAlpha –
Blending
See also
sourceAlpha()
Setter of property
sourceAlphaᅟ
.- setSourceRgb(sourceRgb)#
- Parameters:
sourceRgb –
Blending
See also
sourceRgb()
Setter of property
sourceRgbᅟ
.- setSourceRgba(sourceRgba)#
- Parameters:
sourceRgba –
Blending
Change both
sourceRgb
andsourceAlpha
properties tosourceRgba
.- sourceAlpha()#
- Return type:
Blending
See also
setSourceAlpha()
Getter of property
sourceAlphaᅟ
.- sourceAlphaChanged(sourceAlpha)#
- Parameters:
sourceAlpha –
Blending
Notification signal of property
sourceAlphaᅟ
.- sourceRgb()#
- Return type:
Blending
See also
setSourceRgb()
Getter of property
sourceRgbᅟ
.- sourceRgbChanged(sourceRgb)#
- Parameters:
sourceRgb –
Blending
Notification signal of property
sourceRgbᅟ
.- sourceRgbaChanged(sourceRgba)#
- Parameters:
sourceRgba –
Blending
Notify that both
sourceRgb
andsourceAlpha
properties have changed tosourceRgba
.