Added reading texture map input from file so we can give custom names to the entries.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user