1 | // Copyright (C) 2021 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QSSG_RUNTIME_UTILITIES_H |
5 | #define QSSG_RUNTIME_UTILITIES_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 purely as an |
12 | // implementation detail. 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 <QtQuick3DAssetUtils/private/qtquick3dassetutilsglobal_p.h> |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class QQuick3DNode; |
23 | class QQuick3DObject; |
24 | class QObject; |
25 | |
26 | namespace QSSGSceneDesc |
27 | { |
28 | struct Scene; |
29 | struct Node; |
30 | struct Property; |
31 | } |
32 | |
33 | namespace QSSGRuntimeUtils |
34 | { |
35 | Q_QUICK3DASSETUTILS_EXPORT QQuick3DNode *createScene(QQuick3DNode &parent, const QSSGSceneDesc::Scene &scene); |
36 | Q_QUICK3DASSETUTILS_EXPORT void createGraphObject(QSSGSceneDesc::Node &node, QQuick3DObject &parent, bool traverseChildrenAndSetProperties = true); |
37 | Q_QUICK3DASSETUTILS_EXPORT void applyPropertyValue(const QSSGSceneDesc::Node *node, QObject *obj, QSSGSceneDesc::Property *property); |
38 | } |
39 | |
40 | QT_END_NAMESPACE |
41 | |
42 | #endif // QSSG_RUNTIME_UTILITIES_H |
43 | |