Qt3DRender::QBlendEquation Class
class Qt3DRender::QBlendEquationQBlendEquation 类指定用于 RGB 混合方程和 Alpha 混合方程的方程。更多
Header: | #include <Qt3DRender/QBlendEquation> |
CMake.QBlendEquation | 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 创建一个新的混合状态对象。
© 2025 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.