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