///|/ Copyright (c) Prusa Research 2022 Filip Sykala @Jony01 ///|/ ///|/ PrusaSlicer is released under the terms of the AGPLv3 or higher ///|/ #ifndef slic3r_CreateFontStyleImagesJob_hpp_ #define slic3r_CreateFontStyleImagesJob_hpp_ #include #include #include #include "slic3r/Utils/EmbossStyleManager.hpp" #include "Job.hpp" namespace Slic3r::GUI::Emboss { /// /// Create texture with name of styles written by its style /// NOTE: Access to glyph cache is possible only from job /// class CreateFontStyleImagesJob : public Job { StyleManager::StyleImagesData m_input; // Output data // texture size int m_width, m_height; // texture data std::vector m_pixels; // descriptors of sub textures std::vector m_images; public: CreateFontStyleImagesJob(StyleManager::StyleImagesData &&input); void process(Ctl &ctl) override; void finalize(bool canceled, std::exception_ptr &) override; }; } // namespace Slic3r::GUI #endif // slic3r_CreateFontStyleImagesJob_hpp_