1// Copyright (C) 2017 The Qt Company Ltd and/or its subsidiary(-ies).
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 "scene2dplugin.h"
5
6#include <private/qrenderpluginfactoryif_p.h>
7#include <private/qrenderplugin_p.h>
8
9QT_BEGIN_NAMESPACE
10
11class Scene2DPlugin : public Qt3DRender::Render::QRenderPluginFactoryIf
12{
13 Q_OBJECT
14 Q_PLUGIN_METADATA(IID QRenderPluginFactoryInterface_iid FILE "scene2dplugin.json")
15
16 Qt3DRender::Render::QRenderPlugin *create(const QString &key,
17 const QStringList &paramList) override
18 {
19 Q_UNUSED(key);
20 Q_UNUSED(paramList);
21 return new Qt3DRender::Render::Scene2DPlugin();
22 }
23};
24
25QT_END_NAMESPACE
26
27#include "main.moc"
28

source code of qt3d/src/plugins/renderplugins/scene2d/main.cpp