| 757 | } |
| 758 | |
| 759 | void RenderingManager::SetAntiAliasing(AntiAliasing antiAliasing) |
| 760 | { |
| 761 | if (m_AntiAliasing != antiAliasing) |
| 762 | { |
| 763 | auto renderingManager = RenderingManager::GetInstance(); |
| 764 | auto renderWindows = renderingManager->GetAllRegisteredRenderWindows(); |
| 765 | |
| 766 | for (auto renderWindow : renderWindows) |
| 767 | { |
| 768 | auto renderers = renderWindow->GetRenderers(); |
| 769 | |
| 770 | if (nullptr != renderers) |
| 771 | { |
| 772 | renderers->InitTraversal(); |
| 773 | auto renderer = renderers->GetNextItem(); |
| 774 | |
| 775 | while (nullptr != renderer) |
| 776 | { |
| 777 | renderer->SetUseFXAA(AntiAliasing::FastApproximate == antiAliasing); |
| 778 | renderer = renderers->GetNextItem(); |
| 779 | } |
| 780 | |
| 781 | renderingManager->RequestUpdate(renderWindow); |
| 782 | } |
| 783 | } |
| 784 | |
| 785 | m_AntiAliasing = antiAliasing; |
| 786 | } |
| 787 | } |
| 788 | |
| 789 | void RenderingManager::SetConstrainedPanningZooming(bool constrain) |
| 790 | { |