#ifndef DUST3D_GLB_FILE_H #define DUST3D_GLB_FILE_H #include #include #include #include #include #include #include #include "outcome.h" #include "json.hpp" #include "document.h" class GlbFileWriter : public QObject { Q_OBJECT public: GlbFileWriter(Outcome &outcome, const std::vector *resultRigBones, const std::map *resultRigWeights, const QString &filename, bool textureHasTransparencySettings, QImage *textureImage=nullptr, QImage *normalImage=nullptr, QImage *ormImage=nullptr, const std::vector>>> *motions=nullptr); bool save(); private: QString m_filename; bool m_outputNormal; bool m_outputAnimation; bool m_outputUv; QByteArray m_binByteArray; QByteArray m_jsonByteArray; private: nlohmann::json m_json; public: static bool m_enableComment; }; #endif