1// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QT3DRENDER_QRENDERSTATESET_H
5#define QT3DRENDER_QRENDERSTATESET_H
6
7#include <Qt3DRender/qframegraphnode.h>
8
9QT_BEGIN_NAMESPACE
10
11namespace Qt3DRender {
12
13class QRenderStateSetPrivate;
14class QRenderState;
15
16class Q_3DRENDERSHARED_EXPORT QRenderStateSet : public QFrameGraphNode
17{
18 Q_OBJECT
19
20public:
21 explicit QRenderStateSet(Qt3DCore::QNode *parent = nullptr);
22 ~QRenderStateSet();
23
24 void addRenderState(QRenderState *state);
25 void removeRenderState(QRenderState *state);
26 QList<QRenderState *> renderStates() const;
27
28protected:
29 explicit QRenderStateSet(QRenderStateSetPrivate &dd, Qt3DCore::QNode *parent = nullptr);
30
31private:
32 Q_DECLARE_PRIVATE(QRenderStateSet)
33};
34
35} // namespace Qt3DRender
36
37QT_END_NAMESPACE
38
39#endif // QT3DRENDER_QRENDERSTATESET_H
40

source code of qt3d/src/render/framegraph/qrenderstateset.h