QBlendEquation Class

class Qt3DRender::QBlendEquation

The QBlendEquation class specifies the equation used for both the RGB blend equation and the Alpha blend equation. More...

Header: #include <Qt3DRender/QBlendEquation>
qmake: QT += 3drender
Since: Qt 5.7
Instantiated By: BlendEquation
Inherits: Qt3DRender::QRenderState

This class was introduced in Qt 5.7.

Public Types

enum BlendFunction { Add, Subtract, ReverseSubtract, Min, Max }

Properties

Public Functions

BlendFunction blendFunction() const

Public Slots

void setBlendFunction(BlendFunction blendFunction)

Signals

void blendFunctionChanged(BlendFunction blendFunction)

Detailed Description

The blend equation is used to determine how a new pixel is combined with a pixel already in the framebuffer.

Member Type Documentation

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

Property Documentation

blendFunction : BlendFunction

Holds the blend function, which determines how source and destination colors are combined.

Access functions:

BlendFunction blendFunction() const
void setBlendFunction(BlendFunction blendFunction)

Notifier signal:

void blendFunctionChanged(BlendFunction blendFunction)