1 | // Copyright (C) 2021 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | #ifndef QT3DQUICKSCENE2D_GLOBAL_P_H |
4 | #define QT3DQUICKSCENE2D_GLOBAL_P_H |
5 | |
6 | // |
7 | // W A R N I N G |
8 | // ------------- |
9 | // |
10 | // This file is not part of the Qt API. It exists for the convenience |
11 | // of other Qt classes. This header file may change from version to |
12 | // version without notice, or even be removed. |
13 | // |
14 | // We mean it. |
15 | // |
16 | |
17 | #include <Qt3DQuickScene2D/qt3dquickscene2d_global.h> |
18 | #include <QtQml/qqml.h> |
19 | #include <private/qglobal_p.h> |
20 | |
21 | #define Q_3DQUICKSCENE2DSHARED_PRIVATE_EXPORT Q_3DQUICKSCENE2DSHARED_EXPORT |
22 | |
23 | QT_BEGIN_NAMESPACE |
24 | |
25 | namespace Qt3DRender { |
26 | |
27 | namespace Quick { |
28 | |
29 | Q_3DQUICKSCENE2DSHARED_PRIVATE_EXPORT void Quick3DScene2D_initialize(); |
30 | Q_3DQUICKSCENE2DSHARED_PRIVATE_EXPORT void Quick3DScene2D_registerType(const char *className, |
31 | const char *quickName, |
32 | int major, int minor); |
33 | |
34 | template<class T, class E> void registerExtendedType(const char *className, const char *quickName, |
35 | const char *uri, int major, int minor, |
36 | const char *name) |
37 | { |
38 | qmlRegisterExtendedType<T, E>(uri, major, minor, name); |
39 | Quick3DScene2D_registerType(className, quickName, major, minor); |
40 | } |
41 | |
42 | template<class T> void registerType(const char *className, const char *quickName, |
43 | const char *uri, int major, int minor, const char *name) |
44 | { |
45 | qmlRegisterType<T>(uri, major, minor, name); |
46 | Quick3DScene2D_registerType(className, quickName, major, minor); |
47 | } |
48 | |
49 | } // Quick |
50 | |
51 | } // Qt3D |
52 | |
53 | QT_END_NAMESPACE |
54 | |
55 | #endif // QT3DQUICKSCENE2D_GLOBAL_P_H |
56 | |