diff options
author | Roman Sorokin <sorok-roma@yandex.ru> | 2014-09-24 11:52:37 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:27:30 +0300 |
commit | e23d12b0cf15a856fa8e23a33e7f919622384b9b (patch) | |
tree | 508253ab6b9ded8af6e99fcc7d4a15af077e9296 /drape_head/testing_engine.cpp | |
parent | 0a6d1aaed85046a0be1fc17e8e4263cc42b57ed9 (diff) |
Updated tests
Diffstat (limited to 'drape_head/testing_engine.cpp')
-rw-r--r-- | drape_head/testing_engine.cpp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/drape_head/testing_engine.cpp b/drape_head/testing_engine.cpp index 173227f607..0b5eb49baa 100644 --- a/drape_head/testing_engine.cpp +++ b/drape_head/testing_engine.cpp @@ -149,7 +149,7 @@ public: basePoint, basePoint }; - float const halfSize = 512.0f; + float const halfSize = 12.0f; m2::PointF normals[4] = { m2::PointF(-halfSize, halfSize), m2::PointF(-halfSize, -halfSize), @@ -635,6 +635,28 @@ void TestingEngine::DrawImpl() DummyColorElement f; f.Draw(m_batcher.GetRefPointer(), m_textures.GetRefPointer()); + + dp::StipplePenKey key; + key.m_pattern.push_back(35); + key.m_pattern.push_back(35); + + LineViewParams params7; + params7.m_depth = 10; + params7.m_color = dp::Color(0, 0, 0, 255); + params7.m_width = 4; + params7.m_join = dp::LineJoin::RoundJoin; + params7.m_cap = dp::LineCap::ButtCap; + params7.m_key = key; + + vector<m2::PointF> points; + points.push_back(m2::PointF(100.0f, 100.0f)); + points.push_back(m2::PointF(190.0f, 100.0f)); + points.push_back(m2::PointF(190.0f, 190.0f)); + points.push_back(m2::PointF(280.0f, 190.0f)); + points.push_back(m2::PointF(280.0f, 280.0f)); + points.push_back(m2::PointF(370.0f, 280.0f)); + LineShape ls1(path, params7, 1.0f / m_modelView.GetScale()); + ls1.Draw(m_batcher.GetRefPointer(), m_textures.GetRefPointer()); } void TestingEngine::ModelViewInit() |