QBlendEquation Class
(Qt3DRender::QBlendEquation)The QBlendEquation class specifies the equation used for both the RGB blend equation and the Alpha blend equation 更多...
头文件: | #include <Qt3DRender/QBlendEquation> |
qmake: | QT += 3drender |
开始支持版本: | Qt 5.7 |
Instantiated By: | BlendEquation |
基类: | Qt3DRender::QRenderState |
公有类型
enum | BlendFunction { Add, Subtract, ReverseSubtract, Min, Max } |
属性
- blendFunction : BlendFunction
- 3 个属性继承自 Qt3DCore::QNode
- 1 个属性继承自 QObject
公有函数
QBlendEquation(Qt3DCore::QNode *parent = nullptr) | |
BlendFunction | blendFunction() const |
- 11 个公有函数继承自 Qt3DCore::QNode
- 32 个公有函数继承自 QObject
公有槽函数
void | setBlendFunction(BlendFunction blendFunction) |
- 3 个公有槽函数继承自 Qt3DCore::QNode
- 1 个公有槽函数继承自 QObject
信号
void | blendFunctionChanged(BlendFunction blendFunction) |
- 4 个信号继承自 Qt3DCore::QNode
- 2 个信号继承自 QObject
其他继承的成员
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 2 个受保护的函数继承自 Qt3DCore::QNode
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
The QBlendEquation class specifies the equation used for both the RGB blend equation and the Alpha blend equation
The blend equation is used to determine how a new pixel is combined with a pixel already in the framebuffer.
成员类型
enum QBlendEquation::BlendFunction
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 |
属性
blendFunction : BlendFunction
Holds the blend function, which determines how source and destination colors are combined.
访问函数:
BlendFunction | blendFunction() const |
void | setBlendFunction(BlendFunction blendFunction) |
Notifier signal:
void | blendFunctionChanged(BlendFunction blendFunction) |