More text cleanup

This commit is contained in:
Georg Hagen
2025-03-02 19:39:34 +01:00
parent fdea7ce0ba
commit c2c19b6383
4 changed files with 10 additions and 24 deletions

View File

@@ -18,7 +18,6 @@
#include "Base/EngineConfiguration.hpp"
#include "Controller/FreeCamCameraController.hpp"
#include "Scene/Text/SdfFontAtlasGenerator.hpp"
#include <filesystem>
#ifdef _WIN32
#undef TRANSPARENT
@@ -47,7 +46,7 @@ namespace OpenVulkano
auto& resourceLoader = ResourceLoader::GetInstance();
auto sdfMetadataInfo = resourceLoader.GetResource("sdf_atlas_packed.png");
TextDrawable textDrawable(sdfMetadataInfo);
TextDrawable textDrawable(std::make_shared<FontAtlas>(sdfMetadataInfo));
const std::vector<std::string> texts = { "_!?{}.#@", "1", "XYZ", "12345" };
const int N = texts.size();
m_nodesPool.resize(N);