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
20QT_BEGIN_NAMESPACE
21
22class QQuick3DNode;
23class QQuick3DObject;
24class QObject;
25
26namespace QSSGSceneDesc
27{
28struct Scene;
29struct Node;
30struct Property;
31}
32
33namespace QSSGRuntimeUtils
34{
35Q_QUICK3DASSETUTILS_EXPORT QQuick3DNode *createScene(QQuick3DNode &parent, const QSSGSceneDesc::Scene &scene);
36Q_QUICK3DASSETUTILS_EXPORT void createGraphObject(QSSGSceneDesc::Node &node, QQuick3DObject &parent, bool traverseChildrenAndSetProperties = true);
37Q_QUICK3DASSETUTILS_EXPORT void applyPropertyValue(const QSSGSceneDesc::Node *node, QObject *obj, QSSGSceneDesc::Property *property);
38}
39
40QT_END_NAMESPACE
41
42#endif // QSSG_RUNTIME_UTILITIES_H
43

source code of qtquick3d/src/assetutils/qssgrtutilities_p.h