From e23d12b0cf15a856fa8e23a33e7f919622384b9b Mon Sep 17 00:00:00 2001 From: Roman Sorokin Date: Wed, 24 Sep 2014 10:52:37 +0300 Subject: [PATCH] Updated tests --- drape_head/testing_engine.cpp | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) 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 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()