Moved to Application
Showing the changes to interface/src/Application.cpp (1 of 3 files). Show all
Unified · Split
| @@ -664,7 +664,7 @@ void Application::paintGL() { · 663 unmodified lines | |||
| 664 | _myCamera.update(1.0f / _fps); | 664 | _myCamera.update(1.0f / _fps); |
| 665 | } | 665 | } |
| 666 | 666 | ||
| 667 | if (Menu::getInstance()->getShadowsEnabled()) { | 667 | if (getShadowsEnabled()) { |
| 668 | updateShadowMap(); | 668 | updateShadowMap(); |
| 669 | } | 669 | } |
| 670 | 670 | ||
| @@ -2956,8 +2956,10 @@ void Application::computeOffAxisFrustum(float& left, float& right, float& bottom · 2285 unmodified lines | |||
| 2956 | } | 2956 | } |
| 2957 | } | 2957 | } |
| 2958 | 2958 | ||
| 2959 | bool Application::getShadowsEnabled() { | 2959 | bool Application::getShadowsEnabled() { |
| 2960 | return Menu::getInstance()->getShadowsEnabled(); | 2960 | Menu* menubar = Menu::getInstance(); |
| 2961 | return menubar->isOptionChecked(MenuOption::SimpleShadows) || | ||
| 2962 | menubar->isOptionChecked(MenuOption::CascadedShadows); | ||
| 2961 | } | 2963 | } |
| 2962 | 2964 | ||
| 2963 | bool Application::getCascadeShadowsEnabled() { | 2965 | bool Application::getCascadeShadowsEnabled() { |