QBlendEquationArguments Class

(Qt3DRender::QBlendEquationArguments)

Encapsulates blending information: specifies how the incoming values (what's going to be drawn) are going to affect the existing values (what is already drawn). 更多...

头文件: #include <QBlendEquationArguments>
qmake: QT += 3drender
开始支持版本: Qt 5.5
Instantiated By: BlendEquationArguments
基类: Qt3DRender::QRenderState

公有类型

enum Blending { Zero, One, SourceColor, SourceAlpha, ..., OneMinusSource1Color0 }

属性

公有函数

QBlendEquationArguments(Qt3DCore::QNode *parent = nullptr)
int bufferIndex() const
Blending destinationAlpha() const
Blending destinationRgb() const
Blending sourceAlpha() const
Blending sourceRgb() const

公有槽函数

void setBufferIndex(int index)
void setDestinationAlpha(Blending destinationAlpha)
void setDestinationRgb(Blending destinationRgb)
void setDestinationRgba(Blending destinationRgba)
void setSourceAlpha(Blending sourceAlpha)
void setSourceRgb(Blending sourceRgb)
void setSourceRgba(Blending sourceRgba)

信号

void bufferIndexChanged(int index)
void destinationAlphaChanged(Blending destinationAlpha)
void destinationRgbChanged(Blending destinationRgb)
void destinationRgbaChanged(Blending destinationRgba)
void sourceAlphaChanged(Blending sourceAlpha)
void sourceRgbChanged(Blending sourceRgb)
void sourceRgbaChanged(Blending sourceRgba)

受保护的函数

QBlendEquationArguments(QBlendEquationArgumentsPrivate &dd, Qt3DCore::QNode *parent = nullptr)

其他继承的成员

  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

Encapsulates blending information: specifies how the incoming values (what's going to be drawn) are going to affect the existing values (what is already drawn).

OpenGL pre-3.0: Set the same blend state for all draw buffers (one QBlendEquationArguments) OpenGL 3.0-pre4.0: Set the same blend state for all draw buffers, but can disable blending for particular buffers (one QBlendEquationArguments for setting glBlendFunc, n QBlendEquationArgumentss for enabling/disabling Draw Buffers) OpenGL 4.0+: Can set blend state individually for each draw buffer.

成员类型

enum QBlendEquationArguments::Blending

ConstantValueDescription
Qt3DRender::QBlendEquationArguments::Zero0GL_ZERO
Qt3DRender::QBlendEquationArguments::One1GL_ONE
Qt3DRender::QBlendEquationArguments::SourceColor0x0300GL_SRC_COLOR
Qt3DRender::QBlendEquationArguments::SourceAlpha0x0302GL_SRC_ALPHA
Qt3DRender::QBlendEquationArguments::Source1Alpha?GL_SRC1_ALPHA
Qt3DRender::QBlendEquationArguments::Source1Color?GL_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::OneMinusSource1Alpha?GL_ONE_MINUS_SRC1_ALPHA
Qt3DRender::QBlendEquationArguments::OneMinusSource1Color?GL_ONE_MINUS_SRC1_COLOR
Qt3DRender::QBlendEquationArguments::OneMinusSource1Color0OneMinusSource1ColorGL_ONE_MINUS_SRC1_COLOR (deprecated)

属性

bufferIndex : int

Specifies the index of the Draw Buffer that this BlendEquationArguments applies to. If negative, this will apply to all Draw Buffers.

访问函数:

int bufferIndex() const
void setBufferIndex(int index)

Notifier signal:

void bufferIndexChanged(int index)

destinationAlpha : Blending

访问函数:

Blending destinationAlpha() const
void setDestinationAlpha(Blending destinationAlpha)

Notifier signal:

void destinationAlphaChanged(Blending destinationAlpha)

destinationRgb : Blending

访问函数:

Blending destinationRgb() const
void setDestinationRgb(Blending destinationRgb)

Notifier signal:

void destinationRgbChanged(Blending destinationRgb)

sourceAlpha : Blending

访问函数:

Blending sourceAlpha() const
void setSourceAlpha(Blending sourceAlpha)

Notifier signal:

void sourceAlphaChanged(Blending sourceAlpha)

sourceRgb : Blending

访问函数:

Blending sourceRgb() const
void setSourceRgb(Blending sourceRgb)

Notifier signal:

void sourceRgbChanged(Blending sourceRgb)

成员函数

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

Default constructs an instance of QBlendEquationArguments.

[protected] QBlendEquationArguments::QBlendEquationArguments(QBlendEquationArgumentsPrivate &dd, Qt3DCore::QNode *parent = nullptr)

Copy constructor.

[signal] void QBlendEquationArguments::destinationRgbaChanged(Blending destinationRgba)

Notify that both destinationRgb and destinationAlpha properties have changed to destinationRgba.

[slot] void QBlendEquationArguments::setDestinationRgba(Blending destinationRgba)

Change both destinationRgb and destinationAlpha properties to destinationRgba.

[slot] void QBlendEquationArguments::setSourceRgba(Blending sourceRgba)

Change both sourceRgb and sourceAlpha properties to sourceRgba.

[signal] void QBlendEquationArguments::sourceRgbaChanged(Blending sourceRgba)

Notify that both sourceRgb and sourceAlpha properties have changed to sourceRgba.