| 1 | // Copyright (C) 2022 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QQUICK3DBAKEDLIGHTMAP_P_H |
| 5 | #define QQUICK3DBAKEDLIGHTMAP_P_H |
| 6 | |
| 7 | // |
| 8 | // W A R N I N G |
| 9 | // ------------- |
| 10 | // |
| 11 | // This file is not part of the Qt API. It exists purely as an |
| 12 | // implementation detail. This header file may change from version to |
| 13 | // version without notice, or even be removed. |
| 14 | // |
| 15 | // We mean it. |
| 16 | // |
| 17 | |
| 18 | #include <QtQuick3D/private/qquick3dnode_p.h> |
| 19 | |
| 20 | QT_BEGIN_NAMESPACE |
| 21 | |
| 22 | class Q_QUICK3D_EXPORT QQuick3DBakedLightmap : public QObject |
| 23 | { |
| 24 | Q_OBJECT |
| 25 | Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged) |
| 26 | Q_PROPERTY(QString key READ key WRITE setKey NOTIFY keyChanged) |
| 27 | Q_PROPERTY(QString loadPrefix READ loadPrefix WRITE setLoadPrefix NOTIFY loadPrefixChanged) |
| 28 | |
| 29 | QML_NAMED_ELEMENT(BakedLightmap) |
| 30 | |
| 31 | public: |
| 32 | bool isEnabled() const; |
| 33 | QString key() const; |
| 34 | QString loadPrefix() const; |
| 35 | |
| 36 | public Q_SLOTS: |
| 37 | void setEnabled(bool enabled); |
| 38 | void setKey(const QString &key); |
| 39 | void setLoadPrefix(const QString &loadPrefix); |
| 40 | |
| 41 | Q_SIGNALS: |
| 42 | void changed(); |
| 43 | void enabledChanged(); |
| 44 | void keyChanged(); |
| 45 | void loadPrefixChanged(); |
| 46 | |
| 47 | private: |
| 48 | bool m_enabled = false; |
| 49 | QString m_key; |
| 50 | QString m_loadPrefix; |
| 51 | }; |
| 52 | |
| 53 | QT_END_NAMESPACE |
| 54 | |
| 55 | #endif // QQUICK3DBAKEDLIGHTMAP_P_H |
| 56 | |