slightly better logging messages

This commit is contained in:
jrkb 2023-08-04 10:00:47 +02:00
parent 900fba4f12
commit 7db391195d

View file

@ -135,6 +135,7 @@ bool Atlas::generate(bool useCache,
foundAtlasCacheImage = true; foundAtlasCacheImage = true;
if(atlasImage.load(getAtlasPath())){ if(atlasImage.load(getAtlasPath())){
foundAtlasCacheImage = true; foundAtlasCacheImage = true;
cout << "Atlas::generate() -> found cached atlas image" << endl;
} }
} }
} }
@ -224,7 +225,7 @@ bool Atlas::generate(bool useCache,
// Compute atlas layout - pack glyphs // Compute atlas layout - pack glyphs
packer.pack(glyphs.data(), glyphs.size()); packer.pack(glyphs.data(), glyphs.size());
if(!useCache || !foundAtlasCacheImage){ 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 // Get final atlas dimensions
int width = 0, height = 0; int width = 0, height = 0;
packer.getDimensions(width, height); packer.getDimensions(width, height);