diff options
author | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-06-04 17:00:32 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2015-11-30 16:08:34 +0300 |
commit | fd8c633f7b3893eb528d5fd53b2fc9751fc515a8 (patch) | |
tree | 0b4051f285cc31585e6d4b8629921ffe5beacce5 /drape_head | |
parent | 92bd2021230e4e4e815fd6df3020b3dc49b7637d (diff) |
Added route tracks rendering
Diffstat (limited to 'drape_head')
-rw-r--r-- | drape_head/testing_engine.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drape_head/testing_engine.cpp b/drape_head/testing_engine.cpp index bce3b7d30d..1816c45bb0 100644 --- a/drape_head/testing_engine.cpp +++ b/drape_head/testing_engine.cpp @@ -8,6 +8,7 @@ #include "drape_frontend/text_shape.hpp" #include "drape_frontend/path_text_shape.hpp" #include "drape_frontend/path_symbol_shape.hpp" +#include "drape_frontend/route_shape.hpp" #include "drape_frontend/area_shape.hpp" #include "drape_frontend/circle_shape.hpp" #include "drape_frontend/poi_symbol_shape.hpp" @@ -444,6 +445,8 @@ void TestingEngine::timerEvent(QTimerEvent * e) void TestingEngine::DrawImpl() { m_generalUniforms.SetFloatValue("u_opacity", 1.0f); + m_generalUniforms.SetFloatValue("u_color", 0.0f, 0.0f, 1.0f, 0.7f); + m_generalUniforms.SetFloatValue("u_halfWidth", 5.0f); dp::Batcher::TFlushFn flushFn = bind(&df::TestingEngine::OnFlushData, this, _1, _2); m_batcher->StartSession(flushFn); @@ -522,6 +525,21 @@ void TestingEngine::DrawImpl() } { + vector<m2::PointD> path1; + path1.push_back(m2::PointD(80.277071f, 37.9271164f)); + path1.push_back(m2::PointD(80.277071f, 35.9271164f)); + path1.push_back(m2::PointD(86.277071f, 35.9271164f)); + path1.push_back(m2::PointD(86.277071f, 30.9271164f)); + path1.push_back(m2::PointD(88.277071f, 32.9271164f)); + path1.push_back(m2::PointD(89.277071f, 39.9271164f)); + m2::PolylineD pln(path1); + + CommonViewParams rvp; + rvp.m_depth = 95.0f; + RouteShape(pln, rvp).Draw(make_ref(m_batcher)); + } + + { vector<m2::PointF> trg{ m2::PointD(110.0f, 30.0f), m2::PointD(112.0f, 30.0f), m2::PointD(112.0f, 28.0f), m2::PointD(110.0f, 30.0f), m2::PointD(112.0f, 28.0f), m2::PointD(110.0f, 28.0f) }; AreaViewParams p; |