Added reading texture map input from file so we can give custom names to the entries.

This commit is contained in:
2024-09-19 15:23:17 +02:00
parent cf4d4cb8a6
commit c469772afa
6 changed files with 39 additions and 12 deletions

View File

@@ -40,7 +40,14 @@ int main(int argc, char* argv[])
sdl_gpu_test::Packer packer;
for (const std::string& inputFile : inputFiles)
{
packer.addImage(inputFile);
if (inputFile.ends_with(".txt"))
{
packer.addImageList(inputFile);
}
else
{
packer.addImage(inputFile, inputFile);
}
}
packer.pack(outputFile);
}