code refactoring

This commit is contained in:
ohyzha
2025-01-03 12:16:59 +02:00
parent cfb613d6bb
commit 9ff67815d0
4 changed files with 135 additions and 117 deletions

View File

@@ -7,6 +7,7 @@
#pragma once
#include "FontAtlasGeneratorBase.hpp"
#include "Shelf.hpp"
namespace OpenVulkano::Scene
{
@@ -27,6 +28,7 @@ namespace OpenVulkano::Scene
const std::optional<std::string>& pngOutput = std::nullopt) override;
private:
void Generate(const std::variant<std::string, Array<char>>& source, const std::set<uint32_t>& chset, const std::optional<std::string>& pngOutput);
std::pair<std::vector<GlyphForPacking>, double> InitGlyphsForPacking(const std::set<uint32_t>& chset, const FtFaceRecPtr& face);
private:
FontPixelSizeConfig m_pixelSizeConfig;
};