Mentions légales du service

Skip to content
Snippets Groups Projects
Commit c6657bb7 authored by TAVERNIER Vincent's avatar TAVERNIER Vincent
Browse files

Add PNG gray render option

parent ccc49008
No related branches found
No related tags found
No related merge requests found
...@@ -80,7 +80,7 @@ GLcvApp::GLcvApp(GLFWwindow *window, AppConfig &config) : ...@@ -80,7 +80,7 @@ GLcvApp::GLcvApp(GLFWwindow *window, AppConfig &config) :
gui->addButton("Screenshot", [this]() { OnScreenshot(); }); gui->addButton("Screenshot", [this]() { OnScreenshot(); });
gui->addVariable<ScreenshotFormat>("Format", gui->addVariable<ScreenshotFormat>("Format",
[&config](const ScreenshotFormat &fmt) { config.SetRenderFormat(fmt); }, [&config](const ScreenshotFormat &fmt) { config.SetRenderFormat(fmt); },
[&config]() { return config.GetRenderFormat(); })->setItems({"PNG", "TIFF", "EXR"}); [&config]() { return config.GetRenderFormat(); })->setItems({"PNG", "TIFF", "EXR", "PNG (Gray)"});
gui->addButton("Reload", [this]() { OnReload(); }); gui->addButton("Reload", [this]() { OnReload(); });
screen.setVisible(true); screen.setVisible(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment