diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-06-09 14:03:19 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-11-30 16:08:35 +0300 |
commit | 82d87dc5e123e1a94124cf44510ce46016b6a13d (patch) | |
tree | 5996adaa27c74a2fe1ced89866879199653bb2ff /drape_frontend/route_renderer.hpp | |
parent | afe8f28d0c4f4d28f2448e214476ebea7b2a397d (diff) |
Added route clipping in following mode
Diffstat (limited to 'drape_frontend/route_renderer.hpp')
-rw-r--r-- | drape_frontend/route_renderer.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drape_frontend/route_renderer.hpp b/drape_frontend/route_renderer.hpp index dc33f4b502..033e00682c 100644 --- a/drape_frontend/route_renderer.hpp +++ b/drape_frontend/route_renderer.hpp @@ -7,6 +7,8 @@ #include "drape/pointers.hpp" #include "drape/vertex_array_buffer.hpp" +#include "platform/location.hpp" + namespace df { @@ -24,6 +26,8 @@ struct RouteGraphics class RouteRenderer final { public: + RouteRenderer(); + void Render(ScreenBase const & screen, ref_ptr<dp::GpuProgramManager> mng, dp::UniformValuesStorage const & commonUniforms); @@ -32,8 +36,11 @@ public: void RemoveAllRoutes(); + void UpdateDistanceFromBegin(double distanceFromBegin); + private: vector<RouteGraphics> m_routes; + double m_distanceFromBegin; }; } // namespace df |