aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scenegraph/openvg/qsgopenvgadaptation_p.h
blob: f524cb4a780d3e57051964a3cfcb62a7d5661c62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef QSGOPENVGADAPTATION_H
#define QSGOPENVGADAPTATION_H

#include <private/qsgcontextplugin_p.h>

QT_BEGIN_NAMESPACE

class QSGContext;
class QSGRenderLoop;
class QSGOpenVGContext;

class QSGOpenVGAdaptation : public QSGContextPlugin
{
    Q_OBJECT
    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QSGContextFactoryInterface" FILE "openvg.json")
public:
    QSGOpenVGAdaptation(QObject *parent = nullptr);

    QStringList keys() const override;
    QSGContext *create(const QString &key) const override;
    QSGRenderLoop *createWindowManager() override;
    Flags flags(const QString &key) const override;
private:
    static QSGOpenVGContext *instance;
};

QT_END_NAMESPACE

#endif // QSGOPENVGADAPTATION_H