| 1 | // Copyright (C) 2025 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
| 3 | |
| 4 | #ifndef LIGHTMAPVIEWERHELPERS_H |
| 5 | #define LIGHTMAPVIEWERHELPERS_H |
| 6 | |
| 7 | #include <QByteArray> |
| 8 | #include <QString> |
| 9 | |
| 10 | #include <QtQuick3DRuntimeRender/private/qssglightmapio_p.h> |
| 11 | |
| 12 | struct LightmapViewerHelpers |
| 13 | { |
| 14 | static void maskToBBGRColor(QByteArray &array, bool useAlpha = true); |
| 15 | static bool processLightmap(const QString &filename, bool print, bool ); |
| 16 | static QString lightmapTagToString(QSSGLightmapIODataTag tag); |
| 17 | static QSSGLightmapIODataTag stringToLightmapTag(const QString &tag); |
| 18 | }; |
| 19 | |
| 20 | #endif // LIGHTMAPVIEWERHELPERS_H |
| 21 | |