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 QT3DCORE_QSKELETONLOADER_P_H |
5 | #define QT3DCORE_QSKELETONLOADER_P_H |
6 | |
7 | // |
8 | // W A R N I N G |
9 | // ------------- |
10 | // |
11 | // This file is not part of the Qt API. It exists for the convenience |
12 | // of other Qt classes. This header file may change from version to |
13 | // version without notice, or even be removed. |
14 | // |
15 | // We mean it. |
16 | // |
17 | |
18 | #include <Qt3DCore/private/qabstractskeleton_p.h> |
19 | #include "qskeletonloader.h" |
20 | |
21 | #include <memory> |
22 | |
23 | QT_BEGIN_NAMESPACE |
24 | |
25 | namespace Qt3DCore { |
26 | |
27 | class QJoint; |
28 | |
29 | class Q_3DCORE_PRIVATE_EXPORT QSkeletonLoaderPrivate : public QAbstractSkeletonPrivate |
30 | { |
31 | public: |
32 | QSkeletonLoaderPrivate(); |
33 | |
34 | void setStatus(QSkeletonLoader::Status status); |
35 | void setRootJoint(QJoint *rootJoint); |
36 | |
37 | Q_DECLARE_PUBLIC(QSkeletonLoader) |
38 | |
39 | QUrl m_source; |
40 | bool m_createJoints; |
41 | |
42 | // Set by the backend |
43 | QSkeletonLoader::Status m_status; |
44 | Qt3DCore::QJoint* m_rootJoint; |
45 | }; |
46 | |
47 | struct QSkeletonLoaderData |
48 | { |
49 | QUrl source; |
50 | bool createJoints; |
51 | }; |
52 | |
53 | class QJoint; |
54 | |
55 | } // namespace Qt3DCore |
56 | |
57 | QT_END_NAMESPACE |
58 | |
59 | #endif // QT3DCORE_QSKELETONLOADER_P_H |
60 | |