From dba13b754d946af3b3e7f68d8dbefb767218f0e5 Mon Sep 17 00:00:00 2001 From: ohyzha Date: Tue, 13 Aug 2024 11:55:28 +0300 Subject: [PATCH] clean up comments --- openVulkanoCpp/Scene/FontAtlasGenerator.cpp | 2 -- openVulkanoCpp/Scene/FontAtlasGenerator.hpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/openVulkanoCpp/Scene/FontAtlasGenerator.cpp b/openVulkanoCpp/Scene/FontAtlasGenerator.cpp index 42d355a..0d3abef 100644 --- a/openVulkanoCpp/Scene/FontAtlasGenerator.cpp +++ b/openVulkanoCpp/Scene/FontAtlasGenerator.cpp @@ -222,7 +222,6 @@ namespace OpenVulkano::Scene generator.setThreadCount(4); generator.generate(glyphsGeometry.data(), glyphsGeometry.size()); - //const auto& storage = generator.atlasStorage(); int idx = 0; if constexpr (Channels == 3) { @@ -309,7 +308,6 @@ namespace OpenVulkano::Scene template void FontAtlasGenerator::SavePng(const std::string& output) const { - // rework here. do not pass storage . use m_atlasStorage stbi_flip_vertically_on_write(1); if (std::filesystem::path(output).extension() == ".png") { diff --git a/openVulkanoCpp/Scene/FontAtlasGenerator.hpp b/openVulkanoCpp/Scene/FontAtlasGenerator.hpp index deebd5b..c86b6ae 100644 --- a/openVulkanoCpp/Scene/FontAtlasGenerator.hpp +++ b/openVulkanoCpp/Scene/FontAtlasGenerator.hpp @@ -60,7 +60,6 @@ namespace OpenVulkano::Scene const Texture& GetAtlas() const override { return m_atlasTex; } std::map& GetGlyphsInfo() override { return m_symbols; } AtlasMetadata& GetAtlasMetadata() override { return m_meta; } - //Generator& GetFontAtlasGenerator() { return m_generator; } Config& GetGeneratorConfig() { return m_config; } private: void InitFreetypeFromFile(msdfgen::FreetypeHandle*& ft, msdfgen::FontHandle*& font, const std::string& file); @@ -71,7 +70,6 @@ namespace OpenVulkano::Scene void SavePng(const std::string& output) const; private: - //Generator m_generator; Texture m_atlasTex; AtlasMetadata m_meta; Config m_config;