Feature/serve screenshots (#1003)

* Take screnshots using lua function, returning screenshot number. Add screenshot endpoint.
* Change capitalization from screenShot to screenshot
* Fix screenshot filename collision bug when using multiple windows.
This commit is contained in:
Emil Axelsson
2019-11-01 10:41:59 +01:00
committed by GitHub
parent c96794bf27
commit afb889ff82
10 changed files with 89 additions and 54 deletions

View File

@@ -107,7 +107,7 @@ struct WindowDelegate {
bool (*isFisheyeRendering)() = []() { return false; };
void (*takeScreenshot)(bool applyWarping) = [](bool) { };
unsigned int(*takeScreenshot)(bool applyWarping) = [](bool) { return 0u; };
void (*swapBuffer)() = []() {};