1 | // Copyright (C) 2023 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #ifndef QQUICK3DEXTENSIONHELPERS_P_H |
5 | #define QQUICK3DEXTENSIONHELPERS_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 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 <QtQuick3D/qtquick3dglobal.h> |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | using QSSGNodeId = quintptr; |
23 | using QSSGResourceId = quintptr; |
24 | |
25 | class QQuick3DObject; |
26 | |
27 | class Q_QUICK3D_EXPORT QQuick3DExtensionHelpers |
28 | { |
29 | public: |
30 | QQuick3DExtensionHelpers(); |
31 | |
32 | [[nodiscard]] static QSSGNodeId getNodeId(const QQuick3DObject &node); |
33 | [[nodiscard]] static QSSGResourceId getResourceId(const QQuick3DObject &resource); |
34 | }; |
35 | |
36 | QT_END_NAMESPACE |
37 | |
38 | #endif // QQUICK3DEXTENSIONHELPERS_P_H |
39 | |