1 | // Copyright (C) 2020 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 | // W A R N I N G |
5 | // ------------- |
6 | // |
7 | // This file is not part of the Qt API. It exists for the convenience |
8 | // of other Qt classes. This header file may change from version to |
9 | // version without notice, or even be removed. |
10 | // |
11 | // We mean it. |
12 | // |
13 | |
14 | #ifndef QT3DRENDER_QTEXTUREGENERATOR_P_H |
15 | #define QT3DRENDER_QTEXTUREGENERATOR_P_H |
16 | |
17 | #include <Qt3DCore/qabstractfunctor.h> |
18 | #include <Qt3DRender/qabstracttexture.h> |
19 | #include <Qt3DRender/qtexturewrapmode.h> |
20 | #include <QtCore/QSharedPointer> |
21 | #include <private/qglobal_p.h> |
22 | |
23 | QT_BEGIN_NAMESPACE |
24 | |
25 | namespace Qt3DRender { |
26 | |
27 | class QTextureData; |
28 | typedef QSharedPointer<QTextureData> QTextureDataPtr; |
29 | |
30 | class Q_3DRENDERSHARED_EXPORT QTextureGenerator : public Qt3DCore::QAbstractFunctor |
31 | { |
32 | public: |
33 | virtual ~QTextureGenerator(); |
34 | virtual QTextureDataPtr operator()() = 0; |
35 | virtual bool operator ==(const QTextureGenerator &other) const = 0; |
36 | }; |
37 | |
38 | typedef QSharedPointer<QTextureGenerator> QTextureGeneratorPtr; |
39 | |
40 | } // namespace Qt3DRender |
41 | |
42 | QT_END_NAMESPACE |
43 | |
44 | Q_DECLARE_METATYPE(Qt3DRender::QTextureGeneratorPtr) // LCOV_EXCL_LINE |
45 | |
46 | #endif // QT3DRENDER_QTEXTUREGENERATOR_P_H |
47 | |