| 595 | } |
| 596 | |
| 597 | void RouteRenderer::RenderRoute(ref_ptr<dp::GraphicsContext> context, ref_ptr<gpu::ProgramManager> mng, |
| 598 | ScreenBase const & screen, bool trafficShown, FrameValues const & frameValues) |
| 599 | { |
| 600 | for (auto const & subroute : m_subroutes) |
| 601 | { |
| 602 | // Render subroutes. |
| 603 | for (size_t i = 0; i < subroute.m_subrouteData.size(); ++i) |
| 604 | RenderSubroute(context, mng, subroute, i, screen, trafficShown, frameValues); |
| 605 | |
| 606 | // Render markers. |
| 607 | RenderSubrouteMarkers(context, mng, subroute, screen, frameValues); |
| 608 | |
| 609 | // Render arrows. |
| 610 | RenderSubrouteArrows(context, mng, subroute, screen, frameValues); |
| 611 | } |
| 612 | |
| 613 | // Render preview. |
| 614 | RenderPreviewData(context, mng, screen, frameValues); |
| 615 | } |
| 616 | |
| 617 | void RouteRenderer::AddSubrouteData(ref_ptr<dp::GraphicsContext> context, drape_ptr<SubrouteData> && subrouteData, |
| 618 | ref_ptr<gpu::ProgramManager> mng) |