QBlendEquationArguments 类
class Qt3DRender::QBlendEquationArguments封装混合信息:指定传入值(将要绘制的)如何影响现有值(已经绘制的)。更多...
头文件 | #include <QBlendEquationArguments> |
CMake | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake | QT += 3drender |
由以下类实例化 | BlendEquationArguments |
继承自 | Qt3DRender::QRenderState |
公共类型
枚举 | Blending { Zero, One, SourceColor, SourceAlpha, Source1Alpha, …, OneMinusSource1Color0 } |
属性
|
|
公共函数
QBlendEquationArguments(Qt3DCore::QNode *parent = nullptr) | |
int | bufferIndex() const |
Qt3DRender::QBlendEquationArguments::Blending | destinationAlpha() const |
Qt3DRender::QBlendEquationArguments::Blending | destinationRgb() const |
Qt3DRender::QBlendEquationArguments::Blending | sourceAlpha() const |
Qt3DRender::QBlendEquationArguments::Blending | sourceRgb() const |
公共槽
void | setBufferIndex(int index) |
void | setDestinationAlpha(Qt3DRender::QBlendEquationArguments::Blending destinationAlpha) |
void | setDestinationRgb(Qt3DRender::QBlendEquationArguments::Blending destinationRgb) |
void | setDestinationRgba(Qt3DRender::QBlendEquationArguments::Blending destinationRgba) |
void | setSourceAlpha(Qt3DRender::QBlendEquationArguments::Blending sourceAlpha) |
void | setSourceRgb(Qt3DRender::QBlendEquationArguments::Blending sourceRgb) |
void | setSourceRgba(Qt3DRender::QBlendEquationArguments::Blending sourceRgba) |
信号
void | bufferIndexChanged(int index) |
void | destinationAlphaChanged(Qt3DRender::QBlendEquationArguments::Blending destinationAlpha) |
void | destinationRgbChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgb) |
void | destinationRgbaChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgba) |
void | sourceAlphaChanged(Qt3DRender::QBlendEquationArguments::Blending sourceAlpha) |
void | sourceRgbChanged(Qt3DRender::QBlendEquationArguments::Blending sourceRgb) |
void | sourceRgbaChanged(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::Zero | 0 | GL_ZERO |
Qt3DRender::QBlendEquationArguments::One | 1 | GL_ONE |
Qt3DRender::QBlendEquationArguments::SourceColor | 0x0300 | GL_SRC_COLOR |
Qt3DRender::QBlendEquationArguments::SourceAlpha | 0x0302 | GL_SRC_ALPHA |
Qt3DRender::QBlendEquationArguments::Source1Alpha | 0x303 | GL_SRC1_ALPHA |
Qt3DRender::QBlendEquationArguments::Source1Color | 0x304 | GL_SRC1_COLOR |
Qt3DRender::QBlendEquationArguments::DestinationColor | 0x0306 | GL_DST_COLOR |
Qt3DRender::QBlendEquationArguments::DestinationAlpha | 0x0304 | GL_DST_ALPHA |
Qt3DRender::QBlendEquationArguments::SourceAlphaSaturate | 0x0308 | GL_SRC_ALPHA_SATURATE |
Qt3DRender::QBlendEquationArguments::ConstantColor | 0x8001 | 0GL_CONSTANT_COLOR |
Qt3DRender::QBlendEquationArguments::ConstantAlpha | 0x8003 | GL_CONSTANT_ALPHA |
Qt3DRender::QBlendEquationArguments::OneMinusSourceColor | 0x0301 | GL_ONE_MINUS_SRC_COLOR |
Qt3DRender::QBlendEquationArguments::OneMinusSourceAlpha | 0x0303 | GL_ONE_MINUS_SRC_ALPHA |
Qt3DRender::QBlendEquationArguments::OneMinusDestinationAlpha | 0x0305 | GL_ONE_MINUS_DST_ALPHA |
Qt3DRender::QBlendEquationArguments::OneMinusDestinationColor | 0x0307 | GL_ONE_MINUS_DST_COLOR |
Qt3DRender::QBlendEquationArguments::OneMinusConstantColor | 0x8002 | GL_ONE_MINUS_CONSTANT_COLOR |
Qt3DRender::QBlendEquationArguments::OneMinusConstantAlpha | 0x8004 | GL_ONE_MINUS_CONSTANT_ALPHA |
Qt3DRender::QBlendEquationArguments::OneMinusSource1Alpha | 0x8005 | GL_ONE_MINUS_SRC1_ALPHA |
Qt3DRender::QBlendEquationArguments::OneMinusSource1Color | 0x8006 | GL_ONE_MINUS_SRC1_COLOR |
Qt3DRender::QBlendEquationArguments::OneMinusSource1Color0 | OneMinusSource1Color | GL_ONE_MINUS_SRC1_COLOR (已弃用) |
属性文档
bufferIndex : int
指定此 BlendEquationArguments 应用于绘制缓冲区的索引。如果为负,则应用于所有绘制缓冲区。
访问函数
int | bufferIndex() const |
void | setBufferIndex(int index) |
通知信号
void | bufferIndexChanged(int index) |
destinationAlpha : Blending
访问函数
Qt3DRender::QBlendEquationArguments::Blending | destinationAlpha() const |
void | setDestinationAlpha(Qt3DRender::QBlendEquationArguments::Blending destinationAlpha) |
通知信号
void | destinationAlphaChanged(Qt3DRender::QBlendEquationArguments::Blending destinationAlpha) |
destinationRgb : 混合
访问函数
Qt3DRender::QBlendEquationArguments::Blending | destinationRgb() const |
void | setDestinationRgb(Qt3DRender::QBlendEquationArguments::Blending destinationRgb) |
通知信号
void | destinationRgbChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgb) |
sourceAlpha : 混合
访问函数
Qt3DRender::QBlendEquationArguments::Blending | sourceAlpha() const |
void | setSourceAlpha(Qt3DRender::QBlendEquationArguments::Blending sourceAlpha) |
通知信号
void | sourceAlphaChanged(Qt3DRender::QBlendEquationArguments::Blending sourceAlpha) |
sourceRgb : 混合
访问函数
Qt3DRender::QBlendEquationArguments::Blending | sourceRgb() const |
void | setSourceRgb(Qt3DRender::QBlendEquationArguments::Blending sourceRgb) |
通知信号
void | sourceRgbChanged(Qt3DRender::QBlendEquationArguments::Blending sourceRgb) |
成员函数文档
[显式]
QBlendEquationArguments::QBlendEquationArguments(Qt3DCore::QNode *parent = nullptr)
构造函数创建一个具有指定 父对象 的新混合状态对象。
[信号]
void QBlendEquationArguments::destinationRgbaChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgba)
通知 destinationRgb 和 destinationAlpha 属性已更改为 destinationRgba。
[槽]
void QBlendEquationArguments::setDestinationRgba(Qt3DRender::QBlendEquationArguments::Blending destinationRgba)
将 destinationRgb 和 destinationAlpha 属性更改为 destinationRgba。
[槽]
void QBlendEquationArguments::setSourceRgba(Qt3DRender::QBlendEquationArguments::Blending sourceRgba)
将 sourceRgb 和 sourceAlpha 属性更改为 sourceRgba。
[信号]
void QBlendEquationArguments::sourceRgbaChanged(Qt3DRender::QBlendEquationArguments::Blending sourceRgba)
通知 sourceRgb 和 sourceAlpha 属性已更改为 sourceRgba。
© 2024 Qt公司有限公司。此处包含的文档贡献是相应所有者的版权。此处提供的文档是根据自由软件基金会发布、受 GNU自由文档许可版本1.3 条款的许可。Qt和相应的标志是芬兰及其它国家的 Qt公司有限公司的商标。所有其他商标均为其各自所有者的财产。