1 | // Copyright (C) 2020 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 | #include <Qt3DRender/private/qrendererplugin_p.h> |
5 | #include <renderer_p.h> |
6 | |
7 | QT_BEGIN_NAMESPACE |
8 | |
9 | class RhiRendererPlugin : public Qt3DRender::Render::QRendererPlugin |
10 | { |
11 | Q_OBJECT |
12 | Q_PLUGIN_METADATA(IID QRendererPluginFactoryInterface_iid FILE "rhirenderer.json") |
13 | |
14 | Qt3DRender::Render::AbstractRenderer * |
15 | create(const QString &key) override |
16 | { |
17 | Q_UNUSED(key); |
18 | return new Qt3DRender::Render::Rhi::Renderer(); |
19 | } |
20 | }; |
21 | |
22 | QT_END_NAMESPACE |
23 | |
24 | #include "main.moc" |
25 |