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_QABSTRACTSPRITESHEET_H |
5 | #define |
6 | |
7 | #include <Qt3DExtras/qt3dextras_global.h> |
8 | #include <Qt3DCore/QNode> |
9 | #include <Qt3DRender/qabstracttexture.h> |
10 | #include <QtGui/QVector2D> |
11 | #include <QtGui/QMatrix3x3> |
12 | |
13 | QT_BEGIN_NAMESPACE |
14 | |
15 | namespace Qt3DExtras { |
16 | |
17 | class ; |
18 | |
19 | class Q_3DEXTRASSHARED_EXPORT : public Qt3DCore::QNode |
20 | { |
21 | Q_OBJECT |
22 | Q_PROPERTY(Qt3DRender::QAbstractTexture *texture READ texture WRITE setTexture NOTIFY textureChanged) |
23 | Q_PROPERTY(QMatrix3x3 textureTransform READ textureTransform NOTIFY textureTransformChanged) |
24 | Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged) |
25 | public: |
26 | (); |
27 | |
28 | Qt3DRender::QAbstractTexture *() const; |
29 | QMatrix3x3 () const; |
30 | int () const; |
31 | |
32 | public Q_SLOTS: |
33 | void (Qt3DRender::QAbstractTexture *texture); |
34 | void (int currentIndex); |
35 | |
36 | Q_SIGNALS: |
37 | void (Qt3DRender::QAbstractTexture *texture); |
38 | void (const QMatrix3x3 &textureTransform); |
39 | void (int currentIndex); |
40 | |
41 | protected: |
42 | explicit (QAbstractSpriteSheetPrivate &d, Qt3DCore::QNode *parent = nullptr); |
43 | |
44 | private: |
45 | Q_DECLARE_PRIVATE(QAbstractSpriteSheet) |
46 | }; |
47 | |
48 | } // Qt3DExtras |
49 | |
50 | QT_END_NAMESPACE |
51 | |
52 | #endif // QT3DEXTRAS_QABSTRACTSPRITESHEET_H |
53 | |