Showing the changes to interface/src/Menu.cpp (1 of 30 files). Show all
Unified · Split
| @@ -43,6 +43,7 @@ · 42 unmodified lines | |||
| 43 | #include "ui/StandAloneJSConsole.h" | 43 | #include "ui/StandAloneJSConsole.h" |
| 44 | #include "InterfaceLogging.h" | 44 | #include "InterfaceLogging.h" |
| 45 | #include "LocationBookmarks.h" | 45 | #include "LocationBookmarks.h" |
| 46 | #include "DeferredLightingEffect.h" | ||
| 46 | 47 | ||
| 47 | #if defined(Q_OS_MAC) || defined(Q_OS_WIN) | 48 | #if defined(Q_OS_MAC) || defined(Q_OS_WIN) |
| 48 | #include "SpeechRecognizer.h" | 49 | #include "SpeechRecognizer.h" |
| @@ -360,11 +361,16 @@ Menu::Menu() { · 311 unmodified lines | |||
| 360 | // Developer menu ---------------------------------- | 361 | // Developer menu ---------------------------------- |
| 361 | MenuWrapper* developerMenu = addMenu("Developer", "Developer"); | 362 | MenuWrapper* developerMenu = addMenu("Developer", "Developer"); |
| 362 | 363 | ||
| 363 | // Developer > Graphics... | 364 | // Developer > Graphics |
| 364 | action = addActionToQMenuAndActionHash(developerMenu, "Graphics..."); | 365 | MenuWrapper* graphicsOptionsMenu = developerMenu->addMenu("Render"); |
| 365 | connect(action, &QAction::triggered, [] { | 366 | action = addCheckableActionToQMenuAndActionHash(graphicsOptionsMenu, MenuOption::Shadows, 0, true); |
| 366 | qApp->showDialog(QString("hifi/dialogs/GraphicsPreferencesDialog.qml"), | 367 | connect(action, &QAction::triggered, [action] { |
| 367 | QString("hifi/tablet/TabletGraphicsPreferences.qml"), "GraphicsPreferencesDialog"); | 368 | DependencyManager::get<DeferredLightingEffect>()->setShadowMapEnabled(action->isChecked()); |
| 369 | }); | ||
| 370 | |||
| 371 | action = addCheckableActionToQMenuAndActionHash(graphicsOptionsMenu, MenuOption::AmbientOcclusion, 0, false); | ||
| 372 | connect(action, &QAction::triggered, [action] { | ||
| 373 | DependencyManager::get<DeferredLightingEffect>()->setAmbientOcclusionEnabled(action->isChecked()); | ||
| 368 | }); | 374 | }); |
| 369 | 375 | ||
| 370 | // Developer > UI >>> | 376 | // Developer > UI >>> |