Qt3DRender::QBlendEquation Class

class Qt3DRender::QBlendEquation

QBlendEquation 类指定用于 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 }

属性

公共功能

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::Add0x8006GL_FUNC_ADD
Qt3DRender::QBlendEquation::Subtract0x800Agl_func_subtract
Qt3DRender::QBlendEquation::ReverseSubtract0x800Bgl_func_reverse_subtract
Qt3DRender::QBlendEquation::Min0x8007GL_MIN
Qt3DRender::QBlendEquation::Max0x8008GL_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.