Showing the changes to interface/src/scripting/RenderScriptingInterface.cpp (1 of 5 files). Show all
Unified · Split
| @@ -10,8 +10,6 @@ · 9 unmodified lines | |||
| 10 | #include "LightingModel.h" | 10 | #include "LightingModel.h" |
| 11 | #include "AntialiasingEffect.h" | 11 | #include "AntialiasingEffect.h" |
| 12 | 12 | ||
| 13 | const QString DEFERRED = "deferred"; | ||
| 14 | const QString FORWARD = "forward"; | ||
| 15 | 13 | ||
| 16 | RenderScriptingInterface* RenderScriptingInterface::getInstance() { | 14 | RenderScriptingInterface* RenderScriptingInterface::getInstance() { |
| 17 | static RenderScriptingInterface sharedInstance; | 15 | static RenderScriptingInterface sharedInstance; |
| @@ -45,11 +43,12 @@ void RenderScriptingInterface::setRenderMethod(RenderScriptingInterface::RenderM · 27 unmodified lines | |||
| 45 | _renderMethodSetting.set(newMethod); | 43 | _renderMethodSetting.set(newMethod); |
| 46 | config->setBranch(newMethod); | 44 | config->setBranch(newMethod); |
| 47 | emit config->dirtyEnabled(); | 45 | emit config->dirtyEnabled(); |
| 46 | emit settingsChanged(); | ||
| 48 | } | 47 | } |
| 49 | } | 48 | } |
| 50 | 49 | ||
| 51 | QStringList RenderScriptingInterface::getRenderMethodNames() const { | 50 | QStringList RenderScriptingInterface::getRenderMethodNames() const { |
| 52 | static const QStringList refrenderMethodNames = { "Deferred", "Forward" }; | 51 | static const QStringList refrenderMethodNames = { "DEFERRED", "FORWARD" }; |
| 53 | return refrenderMethodNames; | 52 | return refrenderMethodNames; |
| 54 | } | 53 | } |
| 55 | 54 | ||
| @@ -72,6 +71,7 @@ void RenderScriptingInterface::setShadowsEnabled(bool enabled) { · 16 unmodified lines | |||
| 72 | Menu::getInstance()->setIsOptionChecked(MenuOption::Shadows, enabled); | 71 | Menu::getInstance()->setIsOptionChecked(MenuOption::Shadows, enabled); |
| 73 | _shadowsEnabledSetting.set(enabled); | 72 | _shadowsEnabledSetting.set(enabled); |
| 74 | lightingModelConfig->setShadow(enabled); | 73 | lightingModelConfig->setShadow(enabled); |
| 74 | emit settingsChanged(); | ||
| 75 | } | 75 | } |
| 76 | } | 76 | } |
| 77 | 77 | ||
| @@ -94,6 +94,7 @@ void RenderScriptingInterface::setAmbientOcclusionEnabled(bool enabled) { · 16 unmodified lines | |||
| 94 | Menu::getInstance()->setIsOptionChecked(MenuOption::AmbientOcclusion, enabled); | 94 | Menu::getInstance()->setIsOptionChecked(MenuOption::AmbientOcclusion, enabled); |
| 95 | _ambientOcclusionEnabledSetting.set(enabled); | 95 | _ambientOcclusionEnabledSetting.set(enabled); |
| 96 | lightingModelConfig->setAmbientOcclusion(enabled); | 96 | lightingModelConfig->setAmbientOcclusion(enabled); |
| 97 | emit settingsChanged(); | ||
| 97 | } | 98 | } |
| 98 | } | 99 | } |
| 99 | 100 | ||
| @@ -123,5 +124,7 @@ void RenderScriptingInterface::setAntialiasingEnabled(bool enabled) { · 23 unmodified lines | |||
| 123 | mainViewJitterCamConfig->none(); | 124 | mainViewJitterCamConfig->none(); |
| 124 | mainViewAntialiasingConfig->setDebugFXAA(true); | 125 | mainViewAntialiasingConfig->setDebugFXAA(true); |
| 125 | } | 126 | } |
| 127 | |||
| 128 | emit settingsChanged(); | ||
| 126 | } | 129 | } |
| 127 | } | 130 | } |