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#ifndef QT3DRENDER_QGEOMETRYLOADERFACTORY_P_H
5#define QT3DRENDER_QGEOMETRYLOADERFACTORY_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of other Qt classes. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/QObject>
19#include <QtCore/QtPlugin>
20#include <QtCore/QFactoryInterface>
21
22#include <Qt3DRender/private/qt3drender_global_p.h>
23
24QT_BEGIN_NAMESPACE
25
26namespace Qt3DRender {
27
28#define QGeometryLoaderFactory_iid "org.qt-project.Qt3DRender.QGeometryLoaderFactory 5.8"
29
30class QGeometryLoaderInterface;
31
32class Q_3DRENDERSHARED_PRIVATE_EXPORT QGeometryLoaderFactory : public QObject, public QFactoryInterface
33{
34 Q_OBJECT
35 Q_INTERFACES(QFactoryInterface)
36public:
37 explicit QGeometryLoaderFactory(QObject *parent = nullptr);
38 virtual ~QGeometryLoaderFactory();
39
40 virtual QGeometryLoaderInterface *create(const QString &ext) = 0;
41};
42
43} // namespace Qt3DRender
44
45QT_END_NAMESPACE
46
47#endif // QT3DRENDER_QGEOMETRYLOADERFACTORY_P_H
48

source code of qt3d/src/render/io/qgeometryloaderfactory_p.h