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 | |
9 | QT_BEGIN_NAMESPACE |
10 | |
11 | namespace Qt3DRender { |
12 | |
13 | class QRenderStateSetPrivate; |
14 | class QRenderState; |
15 | |
16 | class Q_3DRENDERSHARED_EXPORT QRenderStateSet : public QFrameGraphNode |
17 | { |
18 | Q_OBJECT |
19 | |
20 | public: |
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 | |
28 | protected: |
29 | explicit QRenderStateSet(QRenderStateSetPrivate &dd, Qt3DCore::QNode *parent = nullptr); |
30 | |
31 | private: |
32 | Q_DECLARE_PRIVATE(QRenderStateSet) |
33 | }; |
34 | |
35 | } // namespace Qt3DRender |
36 | |
37 | QT_END_NAMESPACE |
38 | |
39 | #endif // QT3DRENDER_QRENDERSTATESET_H |
40 | |