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 | void Q_3DQUICKSCENE2DSHARED_PRIVATE_EXPORT qml_register_types_QtQuick_Scene2D(); |
26 | |
27 | namespace Qt3DRender { |
28 | |
29 | void Q_3DQUICKSCENE2DSHARED_PRIVATE_EXPORT initScene2dPlugin(); |
30 | |
31 | namespace Quick { |
32 | |
33 | Q_3DQUICKSCENE2DSHARED_PRIVATE_EXPORT void Quick3DScene2D_initialize(); |
34 | Q_3DQUICKSCENE2DSHARED_PRIVATE_EXPORT void Quick3DScene2D_registerType(const char *className, |
35 | const char *quickName, |
36 | int major, int minor); |
37 | |
38 | template<class T, class E> void registerExtendedType(const char *className, const char *quickName, |
39 | const char *uri, int major, int minor, |
40 | const char *name) |
41 | { |
42 | qmlRegisterExtendedType<T, E>(uri, major, minor, name); |
43 | Quick3DScene2D_registerType(className, quickName, major, minor); |
44 | } |
45 | |
46 | template<class T> void registerType(const char *className, const char *quickName, |
47 | const char *uri, int major, int minor, const char *name) |
48 | { |
49 | qmlRegisterType<T>(uri, major, minor, name); |
50 | Quick3DScene2D_registerType(className, quickName, major, minor); |
51 | } |
52 | |
53 | } // Quick |
54 | |
55 | } // Qt3D |
56 | |
57 | QT_END_NAMESPACE |
58 | |
59 | #endif // QT3DQUICKSCENE2D_GLOBAL_P_H |
60 | |