1// Copyright (C) 2018 Klaralvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QT3DRENDER_RENDER_QRENDERERPLUGIN_P_H
5#define QT3DRENDER_RENDER_QRENDERERPLUGIN_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 <QtCore/QObject>
19#include <QtCore/QtPlugin>
20#include <QtCore/QFactoryInterface>
21#include <Qt3DRender/private/qt3drender_global_p.h>
22#include <Qt3DRender/qrenderaspect.h>
23
24QT_BEGIN_NAMESPACE
25
26namespace Qt3DRender {
27
28namespace Render {
29
30#define QRendererPluginFactoryInterface_iid "org.qt-project.Qt3DRender.QRendererFactoryInterface 5.11"
31
32class AbstractRenderer;
33
34class Q_3DRENDERSHARED_PRIVATE_EXPORT QRendererPlugin : public QObject
35{
36 Q_OBJECT
37public:
38 explicit QRendererPlugin(QObject *parent = nullptr);
39 ~QRendererPlugin();
40
41 virtual AbstractRenderer *create(const QString &key);
42};
43
44} // Render
45
46} // Qt3DRender
47
48QT_END_NAMESPACE
49
50#endif // QT3DRENDER_RENDER_QRENDERERPLUGIN_P_H
51

source code of qt3d/src/render/qrendererplugin_p.h