QBlendEquationArguments

PyQt5.Qt3DRender.QBlendEquationArguments

Inherits from QRenderState.

Description

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

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.

Enums

Blending

Member

Value

Description

ConstantAlpha

0x8003

GL_CONSTANT_ALPHA

ConstantColor

0x8001

0GL_CONSTANT_COLOR

DestinationAlpha

0x0304

GL_DST_ALPHA

DestinationColor

0x0306

GL_DST_COLOR

One

1

GL_ONE

OneMinusConstantAlpha

0x8004

GL_ONE_MINUS_CONSTANT_ALPHA

OneMinusConstantColor

0x8002

GL_ONE_MINUS_CONSTANT_COLOR

OneMinusDestinationAlpha

0x0305

GL_ONE_MINUS_DST_ALPHA

OneMinusDestinationColor

0x0307

GL_ONE_MINUS_DST_COLOR

OneMinusSource1Alpha

0x8005

GL_ONE_MINUS_SRC1_ALPHA

OneMinusSource1Color

0x8006

GL_ONE_MINUS_SRC1_COLOR

OneMinusSource1Color0

OneMinusSource1Color

GL_ONE_MINUS_SRC1_COLOR (deprecated)

OneMinusSourceAlpha

0x0303

GL_ONE_MINUS_SRC_ALPHA

OneMinusSourceColor

0x0301

GL_ONE_MINUS_SRC_COLOR

Source1Alpha

0x303

GL_SRC1_ALPHA

Source1Color

0x304

GL_SRC1_COLOR

SourceAlpha

0x0302

GL_SRC_ALPHA

SourceAlphaSaturate

0x0308

GL_SRC_ALPHA_SATURATE

SourceColor

0x0300

GL_SRC_COLOR

Zero

0

GL_ZERO

Methods

__init__(parent: QNode = None)

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


bufferIndex() → int

See also

setBufferIndex().


destinationAlpha() → Blending

destinationRgb() → Blending

setBufferIndex(int)

See also

bufferIndex().


setDestinationAlpha(Blending)

See also

destinationAlpha().


setDestinationRgb(Blending)

See also

destinationRgb().


setDestinationRgba(Blending)

Change both destinationRgb and destinationAlpha properties to destinationRgba.


setSourceAlpha(Blending)

See also

sourceAlpha().


setSourceRgb(Blending)

See also

sourceRgb().


setSourceRgba(Blending)

Change both sourceRgb and sourceAlpha properties to sourceRgba.


sourceAlpha() → Blending

See also

setSourceAlpha().


sourceRgb() → Blending

See also

setSourceRgb().

Signals

bufferIndexChanged(int)

TODO


destinationAlphaChanged(Blending)

TODO


destinationRgbaChanged(Blending)

TODO


destinationRgbChanged(Blending)

TODO


sourceAlphaChanged(Blending)

TODO


sourceRgbaChanged(Blending)

TODO


sourceRgbChanged(Blending)

TODO