| 2464 | } |
| 2465 | |
| 2466 | void Framework::Allow3dMode(bool allow3d, bool allow3dBuildings) |
| 2467 | { |
| 2468 | if (m_drapeEngine == nullptr) |
| 2469 | return; |
| 2470 | |
| 2471 | if (!m_powerManager.IsFacilityEnabled(power_management::Facility::PerspectiveView)) |
| 2472 | allow3d = false; |
| 2473 | |
| 2474 | if (!m_powerManager.IsFacilityEnabled(power_management::Facility::Buildings3d)) |
| 2475 | allow3dBuildings = false; |
| 2476 | |
| 2477 | /// If we are in CarPlay/AA mode and Navigation is active, force 3D buildings off. |
| 2478 | if (m_isCarScreenMode && m_routingManager.IsRoutingActive()) |
| 2479 | allow3dBuildings = false; |
| 2480 | |
| 2481 | m_drapeEngine->Allow3dMode(allow3d, allow3dBuildings); |
| 2482 | } |
| 2483 | |
| 2484 | void Framework::Save3dMode(bool allow3d, bool allow3dBuildings) |
| 2485 | { |
no test coverage detected