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 QT3DEXTRAS_QSKYBOXENTITY_H
5#define QT3DEXTRAS_QSKYBOXENTITY_H
6
7#include <Qt3DCore/qentity.h>
8#include <Qt3DExtras/qt3dextras_global.h>
9
10QT_BEGIN_NAMESPACE
11
12namespace Qt3DExtras {
13
14class QSkyboxEntityPrivate;
15
16class Q_3DEXTRASSHARED_EXPORT QSkyboxEntity : public Qt3DCore::QEntity
17{
18 Q_OBJECT
19 Q_PROPERTY(QString baseName READ baseName WRITE setBaseName NOTIFY baseNameChanged)
20 Q_PROPERTY(QString extension READ extension WRITE setExtension NOTIFY extensionChanged)
21 Q_PROPERTY(bool gammaCorrect READ isGammaCorrectEnabled WRITE setGammaCorrectEnabled NOTIFY gammaCorrectEnabledChanged REVISION 9)
22public:
23 explicit QSkyboxEntity(Qt3DCore::QNode *parent = nullptr);
24 ~QSkyboxEntity();
25
26 QString baseName() const;
27 QString extension() const;
28 bool isGammaCorrectEnabled() const;
29
30public Q_SLOTS:
31 void setBaseName(const QString &path);
32 void setExtension(const QString &extension);
33 void setGammaCorrectEnabled(bool enabled);
34
35Q_SIGNALS:
36 void baseNameChanged(const QString &path);
37 void extensionChanged(const QString &extension);
38 void gammaCorrectEnabledChanged(bool enabled);
39
40private:
41 Q_DECLARE_PRIVATE(QSkyboxEntity)
42};
43
44} // namespace Qt3DExtras
45
46QT_END_NAMESPACE
47
48#endif // QT3DEXTRAS_QSKYBOXENTITY_H
49

source code of qt3d/src/extras/defaults/qskyboxentity.h