Let developers provide an optional filename for dumping main texture contents.

This commit is contained in:
Kai Blaschke
2023-01-25 14:15:58 +01:00
parent 45d05b71d0
commit 2b41fa256a
6 changed files with 64 additions and 39 deletions

View File

@ -115,8 +115,9 @@ void ProjectM::ResetTextures()
m_renderer->ResetTextures();
}
void ProjectM::DumpDebugImageOnNextFrame()
void ProjectM::DumpDebugImageOnNextFrame(const std::string& outputFile)
{
m_renderer->frameDumpOutputFile = outputFile;
m_renderer->writeNextFrameToFile = true;
}