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_QTEXTUREMATERIAL_H |
5 | #define |
6 | |
7 | #include <Qt3DExtras/qt3dextras_global.h> |
8 | #include <Qt3DRender/qmaterial.h> |
9 | #include <QtGui/QVector2D> |
10 | #include <QtGui/QMatrix3x3> |
11 | |
12 | QT_BEGIN_NAMESPACE |
13 | |
14 | namespace Qt3DRender { |
15 | |
16 | class QAbstractTexture; |
17 | |
18 | } // namespace Qt3DRender |
19 | |
20 | namespace Qt3DExtras { |
21 | |
22 | class ; |
23 | |
24 | class Q_3DEXTRASSHARED_EXPORT : public Qt3DRender::QMaterial |
25 | { |
26 | Q_OBJECT |
27 | Q_PROPERTY(Qt3DRender::QAbstractTexture *texture READ texture WRITE setTexture NOTIFY textureChanged) |
28 | Q_PROPERTY(QVector2D textureOffset READ textureOffset WRITE setTextureOffset NOTIFY textureOffsetChanged) |
29 | Q_PROPERTY(QMatrix3x3 textureTransform READ textureTransform WRITE setTextureTransform NOTIFY textureTransformChanged REVISION 10) |
30 | Q_PROPERTY(bool alphaBlending READ isAlphaBlendingEnabled WRITE setAlphaBlendingEnabled NOTIFY alphaBlendingEnabledChanged REVISION 11) |
31 | |
32 | public: |
33 | explicit (Qt3DCore::QNode *parent = nullptr); |
34 | (); |
35 | |
36 | Qt3DRender::QAbstractTexture *() const; |
37 | QVector2D () const; |
38 | QMatrix3x3 () const; |
39 | bool () const; |
40 | |
41 | public Q_SLOTS: |
42 | void (Qt3DRender::QAbstractTexture *texture); |
43 | void (QVector2D textureOffset); |
44 | void (const QMatrix3x3 &matrix); |
45 | void (bool enabled); |
46 | |
47 | Q_SIGNALS: |
48 | void (Qt3DRender::QAbstractTexture *texture); |
49 | void (QVector2D textureOffset); |
50 | void (const QMatrix3x3 &textureTransform); |
51 | void (bool enabled); |
52 | |
53 | private: |
54 | Q_DECLARE_PRIVATE(QTextureMaterial) |
55 | }; |
56 | |
57 | } // Qt3DExtras |
58 | |
59 | QT_END_NAMESPACE |
60 | |
61 | #endif // QT3DEXTRAS_QTEXTUREMATERIAL_H |
62 | |