aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lightmapviewer/lightmapimageprovider.h
blob: 9afa0cc9a0c8657ac5a21fd10fdb822e776cadc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef LIGHTMAPIMAGEPROVIDER_H
#define LIGHTMAPIMAGEPROVIDER_H

#include <QImage>
#include <QQuickImageProvider>

class LightmapImageProvider : public QQuickImageProvider
{
public:
    LightmapImageProvider();

    QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize) override;

private:
    QImage m_errorImage;
};

#endif // LIGHTMAPIMAGEPROVIDER_H