Added API function for dumping the next frame.

This commit is contained in:
Kai Blaschke
2022-10-23 18:08:53 +02:00
parent 75f802e261
commit dbbbc3e591
4 changed files with 30 additions and 0 deletions

View File

@ -184,6 +184,13 @@ void ProjectM::ReadSettings(const class Settings& settings)
Initialize();
}
void ProjectM::DumpDebugImageOnNextFrame()
{
m_renderer->writeNextFrameToFile = true;
}
#if USE_THREADS
void ProjectM::ThreadWorker()