diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2015-01-12 14:57:05 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:35:57 +0300 |
commit | 243e3c6c486f2ee704f9ce5d255f3acbab16d67c (patch) | |
tree | 975ecf4ed8f1a991df8267081d88f0f7b45f9350 /drape_head/testing_engine.cpp | |
parent | 57b86d9d7c7eedc385d20e10ea3c73fef0a10d58 (diff) |
[drape] line shape refactoring/optimization
Diffstat (limited to 'drape_head/testing_engine.cpp')
-rw-r--r-- | drape_head/testing_engine.cpp | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/drape_head/testing_engine.cpp b/drape_head/testing_engine.cpp index 031b39440a..0451c921ba 100644 --- a/drape_head/testing_engine.cpp +++ b/drape_head/testing_engine.cpp @@ -381,7 +381,7 @@ void TestingEngine::DrawImpl() vector<m2::PointD> path; path.push_back(m2::PointD(92.277071f, 50.9271164f)); path.push_back(m2::PointD(98.277071f, 50.9271164f)); - path.push_back(m2::PointD(106.277071f, 47.9271164f)); + path.push_back(m2::PointD(106.277071f, 45.9271164f)); m2::SharedSpline spline(path); PathTextViewParams ptvp; @@ -394,11 +394,27 @@ void TestingEngine::DrawImpl() LineViewParams lvp; lvp.m_baseGtoPScale = ptvp.m_baseGtoPScale; lvp.m_depth = 90.0f; - lvp.m_cap = dp::RoundCap; + lvp.m_cap = dp::SquareCap; lvp.m_color = dp::Color::Red(); - lvp.m_width = 3.0f; + lvp.m_width = 16.0f; lvp.m_join = dp::BevelJoin; LineShape(spline, lvp).Draw(m_batcher.GetRefPointer(), m_textures.GetRefPointer()); + + { + vector<m2::PointD> path1; + path1.push_back(m2::PointD(92.277071f, 45.9271164f)); + path1.push_back(m2::PointD(98.277071f, 45.9271164f)); + path1.push_back(m2::PointD(98.277071f, 40.9271164f)); + path1.push_back(m2::PointD(100.277071f, 38.9271164f)); + path1.push_back(m2::PointD(101.277071f, 45.9271164f)); + path1.push_back(m2::PointD(102.277071f, 40.9271164f)); + m2::SharedSpline spl1(path1); + + lvp.m_join = dp::BevelJoin; + lvp.m_cap = dp::RoundCap; + lvp.m_color = dp::Color::Black(); + LineShape(spl1, lvp).Draw(m_batcher.GetRefPointer(), m_textures.GetRefPointer()); + } } void TestingEngine::DrawRects() |