QBlendEquationArguments露

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

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments

Synopsis露

Functions露

Slots露

Signals露

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 PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments([parent=None])露

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

PySide2.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)

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.bufferIndex()露
Return type:

int

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

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.bufferIndexChanged(index)露
Parameters:

index 鈥� int

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.destinationAlpha()露
Return type:

Blending

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.destinationAlphaChanged(destinationAlpha)露
Parameters:

destinationAlpha 鈥� Blending

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.destinationRgb()露
Return type:

Blending

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.destinationRgbChanged(destinationRgb)露
Parameters:

destinationRgb 鈥� Blending

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.destinationRgbaChanged(destinationRgba)露
Parameters:

destinationRgba 鈥� Blending

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.setBufferIndex(index)露
Parameters:

index 鈥� int

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

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.setDestinationAlpha(destinationAlpha)露
Parameters:

destinationAlpha 鈥� Blending

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.setDestinationRgb(destinationRgb)露
Parameters:

destinationRgb 鈥� Blending

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.setDestinationRgba(destinationRgba)露
Parameters:

destinationRgba 鈥� Blending

Change both destinationRgb and destinationAlpha properties to destinationRgba .

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.setSourceAlpha(sourceAlpha)露
Parameters:

sourceAlpha 鈥� Blending

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.setSourceRgb(sourceRgb)露
Parameters:

sourceRgb 鈥� Blending

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.setSourceRgba(sourceRgba)露
Parameters:

sourceRgba 鈥� Blending

Change both sourceRgb and sourceAlpha properties to sourceRgba .

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.sourceAlpha()露
Return type:

Blending

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.sourceAlphaChanged(sourceAlpha)露
Parameters:

sourceAlpha 鈥� Blending

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.sourceRgb()露
Return type:

Blending

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.sourceRgbChanged(sourceRgb)露
Parameters:

sourceRgb 鈥� Blending

PySide2.Qt3DRender.Qt3DRender.QBlendEquationArguments.sourceRgbaChanged(sourceRgba)露
Parameters:

sourceRgba 鈥� Blending