clean up comments
This commit is contained in:
@@ -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<int Channels>
|
||||
void FontAtlasGenerator<Channels>::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")
|
||||
{
|
||||
|
||||
@@ -60,7 +60,6 @@ namespace OpenVulkano::Scene
|
||||
const Texture& GetAtlas() const override { return m_atlasTex; }
|
||||
std::map<uint32_t, GlyphInfo>& 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;
|
||||
|
||||
Reference in New Issue
Block a user