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 }

属性

公有函数

QBlendEquation(Qt3DCore::QNode *parent = nullptr)
BlendFunction blendFunction() const

公有槽函数

void setBlendFunction(BlendFunction blendFunction)

信号

void blendFunctionChanged(BlendFunction blendFunction)

其他继承的成员

详细描述

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

ConstantValueDescription
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

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)

成员函数

QBlendEquation::QBlendEquation(Qt3DCore::QNode *parent = nullptr)

Default constructs an instance of QBlendEquation.