2024-09-09 21:12:05 +00:00
|
|
|
#ifndef TEXTURECRAFTER_H
|
|
|
|
#define TEXTURECRAFTER_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QQmlEngine>
|
|
|
|
#include <QImage>
|
2024-09-09 21:27:35 +00:00
|
|
|
#include <QTemporaryDir>
|
2024-09-09 21:12:05 +00:00
|
|
|
|
2024-09-14 22:39:53 +00:00
|
|
|
#include <png.h>
|
|
|
|
|
2024-09-09 21:12:05 +00:00
|
|
|
class TextureCrafter : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
QML_ELEMENT
|
|
|
|
public:
|
|
|
|
explicit TextureCrafter(QObject *parent = nullptr);
|
|
|
|
|
2024-09-10 22:07:51 +00:00
|
|
|
Q_INVOKABLE QUrl packChannels(QVector<QUrl> images);
|
2024-09-09 21:12:05 +00:00
|
|
|
|
|
|
|
signals:
|
|
|
|
private:
|
2024-09-14 22:39:53 +00:00
|
|
|
QString getOutFilename();
|
|
|
|
|
2024-09-09 21:27:35 +00:00
|
|
|
QTemporaryDir outDir;
|
2024-09-09 21:12:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TEXTURECRAFTER_H
|