QBlendEquationArguments 类

class Qt3DRender::QBlendEquationArguments

封装混合信息:指定传入值(将要绘制的)如何影响现有值(已经绘制的)。更多...

头文件 #include <QBlendEquationArguments>
CMakefind_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmakeQT += 3drender
由以下类实例化 BlendEquationArguments
继承自 Qt3DRender::QRenderState

公共类型

枚举Blending { Zero, One, SourceColor, SourceAlpha, Source1Alpha, …, OneMinusSource1Color0 }

属性

公共函数

QBlendEquationArguments(Qt3DCore::QNode *parent = nullptr)
intbufferIndex() const
Qt3DRender::QBlendEquationArguments::BlendingdestinationAlpha() const
Qt3DRender::QBlendEquationArguments::BlendingdestinationRgb() const
Qt3DRender::QBlendEquationArguments::BlendingsourceAlpha() const
Qt3DRender::QBlendEquationArguments::BlendingsourceRgb() const

公共槽

voidsetBufferIndex(int index)
voidsetDestinationAlpha(Qt3DRender::QBlendEquationArguments::Blending destinationAlpha)
voidsetDestinationRgb(Qt3DRender::QBlendEquationArguments::Blending destinationRgb)
voidsetDestinationRgba(Qt3DRender::QBlendEquationArguments::Blending destinationRgba)
voidsetSourceAlpha(Qt3DRender::QBlendEquationArguments::Blending sourceAlpha)
voidsetSourceRgb(Qt3DRender::QBlendEquationArguments::Blending sourceRgb)
voidsetSourceRgba(Qt3DRender::QBlendEquationArguments::Blending sourceRgba)

信号

voidbufferIndexChanged(int index)
voiddestinationAlphaChanged(Qt3DRender::QBlendEquationArguments::Blending destinationAlpha)
voiddestinationRgbChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgb)
voiddestinationRgbaChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgba)
voidsourceAlphaChanged(Qt3DRender::QBlendEquationArguments::Blending sourceAlpha)
voidsourceRgbChanged(Qt3DRender::QBlendEquationArguments::Blending sourceRgb)
voidsourceRgbaChanged(Qt3DRender::QBlendEquationArguments::Blending sourceRgba)

详细描述

OpenGL pre-3.0:为所有绘制缓冲区设置相同的混合状态(一个QBlendEquationArguments)。OpenGL 3.0-pre4.0:为所有绘制缓冲区设置相同的混合状态,但可以禁用特定缓冲区的混合(用于设置glBlendFunc的一个QBlendEquationArguments,n个QBlendEquationArguments用于启用/禁用绘制缓冲区)。OpenGL 4.0+:可以为每个绘制缓冲区单独设置混合状态。

成员类型文档

枚举 QBlendEquationArguments::Blending

常量描述
Qt3DRender::QBlendEquationArguments::Zero0GL_ZERO
Qt3DRender::QBlendEquationArguments::One1GL_ONE
Qt3DRender::QBlendEquationArguments::SourceColor0x0300GL_SRC_COLOR
Qt3DRender::QBlendEquationArguments::SourceAlpha0x0302GL_SRC_ALPHA
Qt3DRender::QBlendEquationArguments::Source1Alpha0x303GL_SRC1_ALPHA
Qt3DRender::QBlendEquationArguments::Source1Color0x304GL_SRC1_COLOR
Qt3DRender::QBlendEquationArguments::DestinationColor0x0306GL_DST_COLOR
Qt3DRender::QBlendEquationArguments::DestinationAlpha0x0304GL_DST_ALPHA
Qt3DRender::QBlendEquationArguments::SourceAlphaSaturate0x0308GL_SRC_ALPHA_SATURATE
Qt3DRender::QBlendEquationArguments::ConstantColor0x80010GL_CONSTANT_COLOR
Qt3DRender::QBlendEquationArguments::ConstantAlpha0x8003GL_CONSTANT_ALPHA
Qt3DRender::QBlendEquationArguments::OneMinusSourceColor0x0301GL_ONE_MINUS_SRC_COLOR
Qt3DRender::QBlendEquationArguments::OneMinusSourceAlpha0x0303GL_ONE_MINUS_SRC_ALPHA
Qt3DRender::QBlendEquationArguments::OneMinusDestinationAlpha0x0305GL_ONE_MINUS_DST_ALPHA
Qt3DRender::QBlendEquationArguments::OneMinusDestinationColor0x0307GL_ONE_MINUS_DST_COLOR
Qt3DRender::QBlendEquationArguments::OneMinusConstantColor0x8002GL_ONE_MINUS_CONSTANT_COLOR
Qt3DRender::QBlendEquationArguments::OneMinusConstantAlpha0x8004GL_ONE_MINUS_CONSTANT_ALPHA
Qt3DRender::QBlendEquationArguments::OneMinusSource1Alpha0x8005GL_ONE_MINUS_SRC1_ALPHA
Qt3DRender::QBlendEquationArguments::OneMinusSource1Color0x8006GL_ONE_MINUS_SRC1_COLOR
Qt3DRender::QBlendEquationArguments::OneMinusSource1Color0OneMinusSource1ColorGL_ONE_MINUS_SRC1_COLOR (已弃用)

属性文档

bufferIndex : int

指定此 BlendEquationArguments 应用于绘制缓冲区的索引。如果为负,则应用于所有绘制缓冲区。

访问函数

intbufferIndex() const
voidsetBufferIndex(int index)

通知信号

voidbufferIndexChanged(int index)

destinationAlpha : Blending

访问函数

Qt3DRender::QBlendEquationArguments::BlendingdestinationAlpha() const
voidsetDestinationAlpha(Qt3DRender::QBlendEquationArguments::Blending destinationAlpha)

通知信号

voiddestinationAlphaChanged(Qt3DRender::QBlendEquationArguments::Blending destinationAlpha)

destinationRgb : 混合

访问函数

Qt3DRender::QBlendEquationArguments::BlendingdestinationRgb() const
voidsetDestinationRgb(Qt3DRender::QBlendEquationArguments::Blending destinationRgb)

通知信号

voiddestinationRgbChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgb)

sourceAlpha : 混合

访问函数

Qt3DRender::QBlendEquationArguments::BlendingsourceAlpha() const
voidsetSourceAlpha(Qt3DRender::QBlendEquationArguments::Blending sourceAlpha)

通知信号

voidsourceAlphaChanged(Qt3DRender::QBlendEquationArguments::Blending sourceAlpha)

sourceRgb : 混合

访问函数

Qt3DRender::QBlendEquationArguments::BlendingsourceRgb() const
voidsetSourceRgb(Qt3DRender::QBlendEquationArguments::Blending sourceRgb)

通知信号

voidsourceRgbChanged(Qt3DRender::QBlendEquationArguments::Blending sourceRgb)

成员函数文档

[显式] QBlendEquationArguments::QBlendEquationArguments(Qt3DCore::QNode *parent = nullptr)

构造函数创建一个具有指定 父对象 的新混合状态对象。

[信号] void QBlendEquationArguments::destinationRgbaChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgba)

通知 destinationRgbdestinationAlpha 属性已更改为 destinationRgba

[槽] void QBlendEquationArguments::setDestinationRgba(Qt3DRender::QBlendEquationArguments::Blending destinationRgba)

destinationRgbdestinationAlpha 属性更改为 destinationRgba

[槽] void QBlendEquationArguments::setSourceRgba(Qt3DRender::QBlendEquationArguments::Blending sourceRgba)

sourceRgbsourceAlpha 属性更改为 sourceRgba

[信号] void QBlendEquationArguments::sourceRgbaChanged(Qt3DRender::QBlendEquationArguments::Blending sourceRgba)

通知 sourceRgbsourceAlpha 属性已更改为 sourceRgba

© 2024 Qt公司有限公司。此处包含的文档贡献是相应所有者的版权。此处提供的文档是根据自由软件基金会发布、受 GNU自由文档许可版本1.3 条款的许可。Qt和相应的标志是芬兰及其它国家的 Qt公司有限公司的商标。所有其他商标均为其各自所有者的财产。