1 | // Copyright (C) 2016 The Qt Company Ltd. |
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_QMORPHPHONGMATERIAL_H |
5 | #define |
6 | |
7 | #include <Qt3DExtras/qt3dextras_global.h> |
8 | #include <Qt3DRender/qmaterial.h> |
9 | #include <QtGui/QColor> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | namespace Qt3DExtras { |
14 | |
15 | class ; |
16 | |
17 | class Q_3DEXTRASSHARED_EXPORT : public Qt3DRender::QMaterial |
18 | { |
19 | Q_OBJECT |
20 | Q_PROPERTY(QColor ambient READ ambient WRITE setAmbient NOTIFY ambientChanged) |
21 | Q_PROPERTY(QColor diffuse READ diffuse WRITE setDiffuse NOTIFY diffuseChanged) |
22 | Q_PROPERTY(QColor specular READ specular WRITE setSpecular NOTIFY specularChanged) |
23 | Q_PROPERTY(float shininess READ shininess WRITE setShininess NOTIFY shininessChanged) |
24 | Q_PROPERTY(float interpolator READ interpolator WRITE setInterpolator NOTIFY interpolatorChanged) |
25 | |
26 | public: |
27 | explicit (Qt3DCore::QNode *parent = nullptr); |
28 | (); |
29 | |
30 | QColor () const; |
31 | QColor () const; |
32 | QColor () const; |
33 | float () const; |
34 | float () const; |
35 | |
36 | public Q_SLOTS: |
37 | void (const QColor &ambient); |
38 | void (const QColor &diffuse); |
39 | void (const QColor &specular); |
40 | void (float shininess); |
41 | void (float interpolator); |
42 | |
43 | Q_SIGNALS: |
44 | void (const QColor &ambient); |
45 | void (const QColor &diffuse); |
46 | void (const QColor &specular); |
47 | void (float shininess); |
48 | void (float interpolator); |
49 | |
50 | private: |
51 | Q_DECLARE_PRIVATE(QMorphPhongMaterial) |
52 | }; |
53 | |
54 | } // namespace Qt3DExtras |
55 | |
56 | QT_END_NAMESPACE |
57 | |
58 | #endif // QT3DEXTRAS_QMORPHPHONGMATERIAL_H |
59 | |
60 | |