QBlendEquation Class


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

Public Types

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


Public Functions

QBlendEquation(Qt3DCore::QNode *parent = nullptr)
Qt3DRender::QBlendEquation::BlendFunction blendFunction() const

Public Slots

void setBlendFunction(Qt3DRender::QBlendEquation::BlendFunction blendFunction)


void blendFunctionChanged(Qt3DRender::QBlendEquation::BlendFunction blendFunction)

Static Public Members

const QMetaObject staticMetaObject
  • 9 static public members inherited from QObject

Additional Inherited Members

Detailed Description

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

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


Property Documentation

blendFunction : BlendFunction

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

Access functions:

Qt3DRender::QBlendEquation::BlendFunction blendFunction() const
void setBlendFunction(Qt3DRender::QBlendEquation::BlendFunction blendFunction)

Notifier signal:

void blendFunctionChanged(Qt3DRender::QBlendEquation::BlendFunction blendFunction)

Member Function Documentation

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

The constructor creates a new blend state object with the specified parent.

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