QBlendEquationArguments Class▲
- 
					Header: QBlendEquationArguments 
- 
					CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) 
- 
					qmake: QT += 3drender 
- 
					Inherited By: 
- 
					Instantiated By: qml-qt3d-render-blendequationarguments.xml 
- 
					Inherits: Qt3DRender::QRenderState 
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.
Member Type Documentation▲
enum QBlendEquationArguments::Blending▲
| Constant | Value | Description | 
|---|---|---|
| 0 | GL_ZERO | |
| 1 | GL_ONE | |
| Qt3DRender::QBlendEquationArguments::SourceColor | 0x0300 | GL_SRC_COLOR | 
| Qt3DRender::QBlendEquationArguments::SourceAlpha | 0x0302 | GL_SRC_ALPHA | 
| Qt3DRender::QBlendEquationArguments::Source1Alpha | 0x303 | GL_SRC1_ALPHA | 
| Qt3DRender::QBlendEquationArguments::Source1Color | 0x304 | GL_SRC1_COLOR | 
| Qt3DRender::QBlendEquationArguments::DestinationColor | 0x0306 | GL_DST_COLOR | 
| Qt3DRender::QBlendEquationArguments::DestinationAlpha | 0x0304 | GL_DST_ALPHA | 
| Qt3DRender::QBlendEquationArguments::SourceAlphaSaturate | 0x0308 | GL_SRC_ALPHA_SATURATE | 
| Qt3DRender::QBlendEquationArguments::ConstantColor | 0x8001 | 0GL_CONSTANT_COLOR | 
| Qt3DRender::QBlendEquationArguments::ConstantAlpha | 0x8003 | GL_CONSTANT_ALPHA | 
| Qt3DRender::QBlendEquationArguments::OneMinusSourceColor | 0x0301 | GL_ONE_MINUS_SRC_COLOR | 
| Qt3DRender::QBlendEquationArguments::OneMinusSourceAlpha | 0x0303 | GL_ONE_MINUS_SRC_ALPHA | 
| Qt3DRender::QBlendEquationArguments::OneMinusDestinationAlpha | 0x0305 | GL_ONE_MINUS_DST_ALPHA | 
| Qt3DRender::QBlendEquationArguments::OneMinusDestinationColor | 0x0307 | GL_ONE_MINUS_DST_COLOR | 
| Qt3DRender::QBlendEquationArguments::OneMinusConstantColor | 0x8002 | GL_ONE_MINUS_CONSTANT_COLOR | 
| Qt3DRender::QBlendEquationArguments::OneMinusConstantAlpha | 0x8004 | GL_ONE_MINUS_CONSTANT_ALPHA | 
| Qt3DRender::QBlendEquationArguments::OneMinusSource1Alpha | 0x8005 | GL_ONE_MINUS_SRC1_ALPHA | 
| Qt3DRender::QBlendEquationArguments::OneMinusSource1Color | 0x8006 | GL_ONE_MINUS_SRC1_COLOR | 
| Qt3DRender::QBlendEquationArguments::OneMinusSource1Color0 | OneMinusSource1Color | GL_ONE_MINUS_SRC1_COLOR (deprecated) | 
Property Documentation▲
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:
- 
							int bufferIndex() const 
- 
							void setBufferIndex(int index) 
Notifier signal:
- 
							void bufferIndexChanged(int index) 
destinationAlpha : Blending▲
Access functions:
- 
							destinationAlpha() const 
- 
							void setDestinationAlpha( destinationAlpha) 
Notifier signal:
- 
							void destinationAlphaChanged( destinationAlpha) 
destinationRgb : Blending▲
Access functions:
- 
							destinationRgb() const 
- 
							void setDestinationRgb( destinationRgb) 
Notifier signal:
- 
							void destinationRgbChanged( destinationRgb) 
sourceAlpha : Blending▲
Access functions:
- 
							sourceAlpha() const 
- 
							void setSourceAlpha( sourceAlpha) 
Notifier signal:
- 
							void sourceAlphaChanged( sourceAlpha) 
sourceRgb : Blending▲
Access functions:
- 
							sourceRgb() const 
- 
							void setSourceRgb( sourceRgb) 
Notifier signal:
- 
							void sourceRgbChanged( sourceRgb) 
Member Function Documentation▲
[explicit] QBlendEquationArguments::QBlendEquationArguments(Qt3DCore::QNode *parent = nullptr)▲
The constructor creates a new blend state object with the specified parent.
void QBlendEquationArguments::destinationRgbaChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgba)▲
Notify that both destinationRgb and destinationAlpha properties have changed to destinationRgba.
void QBlendEquationArguments::setDestinationRgba(Qt3DRender::QBlendEquationArguments::Blending destinationRgba)▲
Change both destinationRgb and destinationAlpha properties to destinationRgba.
void QBlendEquationArguments::setSourceRgba(Qt3DRender::QBlendEquationArguments::Blending sourceRgba)▲
Change both sourceRgb and sourceAlpha properties to sourceRgba.
void QBlendEquationArguments::sourceRgbaChanged(Qt3DRender::QBlendEquationArguments::Blending sourceRgba)▲
Notify that both sourceRgb and sourceAlpha properties have changed to sourceRgba.




