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
7QT_BEGIN_NAMESPACE
8
9class 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
21QT_END_NAMESPACE
22
23#include "main.moc"
24

source code of qt3d/src/plugins/renderers/opengl/main.cpp