1// Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB).
2// Copyright (C) 2019 The Qt Company Ltd and/or its subsidiary(-ies).
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4#ifndef QT3DQUICKRENDER_GLOBAL_P_H
5#define QT3DQUICKRENDER_GLOBAL_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 for the convenience
12// of other Qt classes. 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 <Qt3DQuickRender/qt3dquickrender_global.h>
19#include <QtQml/qqml.h>
20#include <private/qglobal_p.h>
21
22#define Q_3DQUICKRENDERSHARED_PRIVATE_EXPORT Q_3DQUICKRENDERSHARED_EXPORT
23
24QT_BEGIN_NAMESPACE
25
26namespace Qt3DRender {
27
28namespace Quick {
29
30Q_3DQUICKRENDERSHARED_PRIVATE_EXPORT void Quick3DRender_initialize();
31Q_3DQUICKRENDERSHARED_PRIVATE_EXPORT void Quick3DRender_registerType(const char *className, const char *quickName, int major, int minor);
32
33template<class T, class E> void registerExtendedType(const char *className, const char *quickName,
34 const char *uri, int major, int minor, const char *name)
35{
36 qmlRegisterExtendedType<T, E>(uri, major, minor, name);
37 Quick3DRender_registerType(className, quickName, major, minor);
38}
39
40template<class T> void registerType(const char *className, const char *quickName,
41 const char *uri, int major, int minor, const char *name)
42{
43 qmlRegisterType<T>(uri, major, minor, name);
44 Quick3DRender_registerType(className, quickName, major, minor);
45}
46
47} // Quick
48
49} // Qt3D
50
51QT_END_NAMESPACE
52
53#endif // QT3DQUICKRENDER_GLOBAL_P_H
54

source code of qt3d/src/quick3d/quick3drender/qt3dquickrender_global_p.h