Qt3DRender::QBlendEquation Class
class Qt3DRender::QBlendEquationQBlendEquation 类指定了同时用于 RGB 混合方程和 Alpha 混合方程的方程。更多内容...
| 头文件: | #include <Qt3DRender/QBlendEquation> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| 在 QML 中: | BlendEquation |
| 继承自: | Qt3DRender::QRenderState |
| 状态: | 已弃用 |
该类已弃用。我们强烈建议不要在新代码中使用它。
公共类型
| enum | BlendFunction { Add, Subtract, ReverseSubtract, Min, Max } |
属性
- blendFunction : BlendFunction
公共函数
| QBlendEquation(Qt3DCore::QNode *parent = nullptr) | |
| Qt3DRender::QBlendEquation::BlendFunction | blendFunction() const |
公共槽位
| void | setBlendFunction(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
信号
| void | blendFunctionChanged(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
成员类型文档
enum QBlendEquation::BlendFunction
| 常量 | 值 | 描述 |
|---|---|---|
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
存储混合函数,该函数决定源颜色和目标颜色如何混合。
访问函数:
| Qt3DRender::QBlendEquation::BlendFunction | blendFunction() const |
| void | setBlendFunction(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
通知信号:
| void | blendFunctionChanged(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
成员函数文档
[explicit] QBlendEquation::QBlendEquation(Qt3DCore::QNode *parent = nullptr)
该构造函数会根据指定的parent 创建一个新的混合状态对象。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.