1 | // Copyright (C) 2017 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_QMETALROUGHMATERIAL_H |
5 | #define |
6 | |
7 | #include <Qt3DExtras/qt3dextras_global.h> |
8 | #include <Qt3DRender/qmaterial.h> |
9 | #include <QtGui/qcolor.h> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | namespace Qt3DRender { |
14 | class QAbstractTexture; |
15 | } |
16 | |
17 | namespace Qt3DExtras { |
18 | |
19 | class ; |
20 | |
21 | class Q_3DEXTRASSHARED_EXPORT : public Qt3DRender::QMaterial |
22 | { |
23 | Q_OBJECT |
24 | Q_PROPERTY(QVariant baseColor READ baseColor WRITE setBaseColor NOTIFY baseColorChanged) |
25 | Q_PROPERTY(QVariant metalness READ metalness WRITE setMetalness NOTIFY metalnessChanged) |
26 | Q_PROPERTY(QVariant roughness READ roughness WRITE setRoughness NOTIFY roughnessChanged) |
27 | Q_PROPERTY(QVariant ambientOcclusion READ ambientOcclusion WRITE setAmbientOcclusion NOTIFY ambientOcclusionChanged REVISION 10) |
28 | Q_PROPERTY(QVariant normal READ normal WRITE setNormal NOTIFY normalChanged REVISION 10) |
29 | Q_PROPERTY(float textureScale READ textureScale WRITE setTextureScale NOTIFY textureScaleChanged REVISION 10) |
30 | |
31 | public: |
32 | explicit (Qt3DCore::QNode *parent = nullptr); |
33 | (); |
34 | |
35 | QVariant () const; |
36 | QVariant () const; |
37 | QVariant () const; |
38 | QVariant () const; |
39 | QVariant () const; |
40 | float () const; |
41 | |
42 | public Q_SLOTS: |
43 | void (const QVariant &baseColor); |
44 | void (const QVariant &metalness); |
45 | void (const QVariant &roughness); |
46 | void (const QVariant &ambientOcclusion); |
47 | void (const QVariant &normal); |
48 | void (float textureScale); |
49 | |
50 | Q_SIGNALS: |
51 | void (const QVariant &baseColor); |
52 | void (const QVariant &metalness); |
53 | void (const QVariant &roughness); |
54 | void (const QVariant &ambientOcclusion); |
55 | void (const QVariant &normal); |
56 | void (float textureScale); |
57 | |
58 | protected: |
59 | explicit (QMetalRoughMaterialPrivate &dd, Qt3DCore::QNode *parent = nullptr); |
60 | |
61 | private: |
62 | Q_DECLARE_PRIVATE(QMetalRoughMaterial) |
63 | }; |
64 | |
65 | } // namespace Qt3DExtras |
66 | |
67 | QT_END_NAMESPACE |
68 | |
69 | #endif // QT3DEXTRAS_QMETALROUGHMATERIAL_H |
70 | |