From 7db391195d86d9c4285c3af52238687485d74e15 Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Fri, 4 Aug 2023 10:00:47 +0200 Subject: [PATCH] slightly better logging messages --- src/Atlas.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Atlas.cpp b/src/Atlas.cpp index 15a03fd..23627da 100644 --- a/src/Atlas.cpp +++ b/src/Atlas.cpp @@ -135,6 +135,7 @@ bool Atlas::generate(bool useCache, foundAtlasCacheImage = true; if(atlasImage.load(getAtlasPath())){ foundAtlasCacheImage = true; + cout << "Atlas::generate() -> found cached atlas image" << endl; } } } @@ -224,7 +225,7 @@ bool Atlas::generate(bool useCache, // Compute atlas layout - pack glyphs packer.pack(glyphs.data(), glyphs.size()); if(!useCache || !foundAtlasCacheImage){ - cout << "did not find atlas image for " << fontPath << ", generating" << endl; + cout << "Atlas::generate() -> didn't find / not using atlas image for " << fontPath << ", generating" << endl; // Get final atlas dimensions int width = 0, height = 0; packer.getDimensions(width, height);