Nesta página

Qt3DRender::QBlendEquationArguments Class

class Qt3DRender::QBlendEquationArguments

Reúne informações sobre mistura: especifica como os valores recebidos (o que será desenhado) afetarão os valores existentes (o que já está desenhado). Mais...

Cabeçalho: #include <qblendequationarguments.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
No QML: BlendEquationArguments
Herdado de: Qt3DRender::QRenderState
Status: Obsoleta

Esta classe está obsoleta. Recomendamos enfaticamente que não seja utilizada em código novo.

Tipos públicos

enum Blending { Zero, One, SourceColor, SourceAlpha, Source1Alpha, …, OneMinusSource1Color0 }

Propriedades

Funções públicas

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

Slots públicos

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)

Sinais

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)

Descrição detalhada

OpenGL pré-3.0: Define o mesmo estado de mistura para todos os buffers de desenho (um QBlendEquationArguments) OpenGL 3.0–pré-4.0: Define o mesmo estado de mistura para todos os buffers de desenho, mas permite desativar a mistura para buffers específicos (um QBlendEquationArguments para definir glBlendFunc, n QBlendEquationArguments para ativar/desativar buffers de desenho) OpenGL 4.0+: Permite definir o estado de mistura individualmente para cada buffer de desenho.

Documentação do tipo de membro

enum QBlendEquationArguments::Blending

ConstanteValorDescrição
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_UM_MENOS_COR_FONTE
Qt3DRender::QBlendEquationArguments::OneMinusSourceAlpha0x0303GL_ONE_MINUS_SRC_ALPHA
Qt3DRender::QBlendEquationArguments::OneMinusDestinationAlpha0x0305GL_UM_MENOS_ALFA_DESTINO
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 (obsoleto)

Documentação da propriedade

bufferIndex : int

Especifica o índice do buffer de desenho ao qual este `BlendEquationArguments` se aplica. Se for negativo, ele se aplicará a todos os buffers de desenho.

Funções de acesso:

int bufferIndex() const
void setBufferIndex(int index)

Sinal de notificação:

void bufferIndexChanged(int index)

destinationAlpha : Blending

Funções de acesso:

Qt3DRender::QBlendEquationArguments::Blending destinationAlpha() const
void setDestinationAlpha(Qt3DRender::QBlendEquationArguments::Blending destinationAlpha)

Sinal de notificação:

void destinationAlphaChanged(Qt3DRender::QBlendEquationArguments::Blending destinationAlpha)

destinationRgb : Blending

Funções de acesso:

Qt3DRender::QBlendEquationArguments::Blending destinationRgb() const
void setDestinationRgb(Qt3DRender::QBlendEquationArguments::Blending destinationRgb)

Sinal do notificador:

void destinationRgbChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgb)

sourceAlpha : Blending

Funções de acesso:

Qt3DRender::QBlendEquationArguments::Blending sourceAlpha() const
void setSourceAlpha(Qt3DRender::QBlendEquationArguments::Blending sourceAlpha)

Sinal do notificador:

void sourceAlphaChanged(Qt3DRender::QBlendEquationArguments::Blending sourceAlpha)

sourceRgb : Blending

Funções de acesso:

Qt3DRender::QBlendEquationArguments::Blending sourceRgb() const
void setSourceRgb(Qt3DRender::QBlendEquationArguments::Blending sourceRgb)

Sinal do Notifier:

void sourceRgbChanged(Qt3DRender::QBlendEquationArguments::Blending sourceRgb)

Documentação das funções de membro

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

O construtor cria um novo objeto de estado de mistura com o ` parent` especificado.

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

Informamos que as propriedades destinationRgb e destinationAlpha foram alteradas para destinationRgba.

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

Altere as propriedades “ destinationRgb ” e “ destinationAlpha ” para “ destinationRgba ”.

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

Altere as propriedades “ sourceRgb ” e “ sourceAlpha ” para “ sourceRgba ”.

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

Informamos que as propriedades sourceRgb e sourceAlpha foram alteradas para sourceRgba.

© 2026 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.