| 229 | //------------------------------------------------------------------------------ |
| 230 | |
| 231 | void LuxCoreApp::MenuSampler() { |
| 232 | const string currentSamplerType = config->ToProperties().Get("sampler.type").Get<string>(); |
| 233 | |
| 234 | if (ImGui::MenuItem("RANDOM", NULL, (currentSamplerType == "RANDOM"))) { |
| 235 | samplerWindow.Close(); |
| 236 | RenderConfigParse(Properties() << Property("sampler.type")("RANDOM")); |
| 237 | } |
| 238 | if (ImGui::MenuItem("SOBOL", NULL, (currentSamplerType == "SOBOL"))) { |
| 239 | samplerWindow.Close(); |
| 240 | RenderConfigParse(Properties() << Property("sampler.type")("SOBOL")); |
| 241 | } |
| 242 | if (ImGui::MenuItem("METROPOLIS", NULL, (currentSamplerType == "METROPOLIS"))) { |
| 243 | samplerWindow.Close(); |
| 244 | RenderConfigParse(Properties() << Property("sampler.type")("METROPOLIS")); |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | //------------------------------------------------------------------------------ |
| 249 | // MenuCamera |
nothing calls this directly
no test coverage detected