| 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_QRENDERSTATE_P_H |
| 6 | #define QT3DRENDER_QRENDERSTATE_P_H |
| 7 | |
| 8 | // |
| 9 | // W A R N I N G |
| 10 | // ------------- |
| 11 | // |
| 12 | // This file is not part of the Qt API. It exists for the convenience |
| 13 | // of other Qt classes. This header file may change from version to |
| 14 | // version without notice, or even be removed. |
| 15 | // |
| 16 | // We mean it. |
| 17 | // |
| 18 | |
| 19 | #include <Qt3DCore/private/qnode_p.h> |
| 20 | #include <Qt3DRender/qrenderstate.h> |
| 21 | #include <Qt3DRender/private/qt3drender_global_p.h> |
| 22 | #include <Qt3DRender/private/statemask_p.h> |
| 23 | |
| 24 | QT_BEGIN_NAMESPACE |
| 25 | |
| 26 | namespace Qt3DRender { |
| 27 | |
| 28 | class Q_3DRENDERSHARED_PRIVATE_EXPORT QRenderStatePrivate : public Qt3DCore::QNodePrivate |
| 29 | { |
| 30 | public: |
| 31 | explicit QRenderStatePrivate(Render::StateMask type); |
| 32 | ~QRenderStatePrivate(); |
| 33 | |
| 34 | |
| 35 | Q_DECLARE_PUBLIC(QRenderState) |
| 36 | |
| 37 | |
| 38 | const Render::StateMask m_type; |
| 39 | |
| 40 | static QRenderStatePrivate *get(QRenderState *state); |
| 41 | static const QRenderStatePrivate *get(const QRenderState *state); |
| 42 | }; |
| 43 | |
| 44 | } |
| 45 | |
| 46 | QT_END_NAMESPACE |
| 47 | |
| 48 | #endif // QT3DRENDER_QRENDERSTATE_P_H |
| 49 | |