The QBlendEquation class specifies the equation used for both the RGB blend equation and the Alpha blend equation. More...
Header: | #include <Qt3DRender/QBlendEquation> |
qmake: | QT += 3drender |
Since: | Qt 5.7 |
Instantiated By: | BlendEquation |
Inherits: | Qt3DRender::QRenderState |
This class was introduced in Qt 5.7.
enum | BlendFunction { Add, Subtract, ReverseSubtract, Min, Max } |
QBlendEquation(Qt3DCore::QNode *parent = nullptr) | |
Qt3DRender::QBlendEquation::BlendFunction | blendFunction() const |
void | setBlendFunction(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
void | blendFunctionChanged(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
The blend equation is used to determine how a new pixel is combined with a pixel already in the framebuffer.
Constant | Value | Description |
---|---|---|
Qt3DRender::QBlendEquation::Add |
0x8006 |
GL_FUNC_ADD |
Qt3DRender::QBlendEquation::Subtract |
0x800A |
GL_FUNC_SUBTRACT |
Qt3DRender::QBlendEquation::ReverseSubtract |
0x800B |
GL_FUNC_REVERSE_SUBTRACT |
Qt3DRender::QBlendEquation::Min |
0x8007 |
GL_MIN |
Qt3DRender::QBlendEquation::Max |
0x8008 |
GL_MAX |
Holds the blend function, which determines how source and destination colors are combined.
Access functions:
Qt3DRender::QBlendEquation::BlendFunction | blendFunction() const |
void | setBlendFunction(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
Notifier signal:
void | blendFunctionChanged(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
The constructor creates a new blend state object with the specified parent.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qt3drender-qblendequation.html