1// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
2// Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies).
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QT3DRENDER_QBLENDEQUATION_H
6#define QT3DRENDER_QBLENDEQUATION_H
7
8#include <Qt3DRender/qrenderstate.h>
9
10QT_BEGIN_NAMESPACE
11
12namespace Qt3DRender {
13
14class QBlendEquationPrivate;
15
16class Q_3DRENDERSHARED_EXPORT QBlendEquation : public QRenderState
17{
18 Q_OBJECT
19 Q_PROPERTY(BlendFunction blendFunction READ blendFunction WRITE setBlendFunction NOTIFY blendFunctionChanged)
20public:
21
22 enum BlendFunction
23 {
24 Add = 0x8006,
25 Subtract = 0x800A,
26 ReverseSubtract = 0x800B,
27 Min = 0x8007,
28 Max = 0x8008
29 };
30 Q_ENUM(BlendFunction) // LCOV_EXCL_LINE
31
32 explicit QBlendEquation(Qt3DCore::QNode *parent = nullptr);
33 ~QBlendEquation();
34
35 BlendFunction blendFunction() const;
36
37public Q_SLOTS:
38 void setBlendFunction(BlendFunction blendFunction);
39
40Q_SIGNALS:
41 void blendFunctionChanged(BlendFunction blendFunction);
42
43private:
44 Q_DECLARE_PRIVATE(QBlendEquation)
45};
46
47} // namespace Qt3DRender
48
49QT_END_NAMESPACE
50
51#endif // QT3DRENDER_QBLENDEQUATION_H
52

source code of qt3d/src/render/renderstates/qblendequation.h