Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-06-08 17:32:44 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-11-30 16:08:34 +0300
commitafe8f28d0c4f4d28f2448e214476ebea7b2a397d (patch)
treef386d4dd8ca823727f50b400e5b7f95a0fded3de /drape_head
parent843f3c3c7838aa0f1e6c39e736af51967f50bf94 (diff)
Added route clipping
Diffstat (limited to 'drape_head')
-rw-r--r--drape_head/testing_engine.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/drape_head/testing_engine.cpp b/drape_head/testing_engine.cpp
index 1816c45bb0..da8907a17a 100644
--- a/drape_head/testing_engine.cpp
+++ b/drape_head/testing_engine.cpp
@@ -446,7 +446,9 @@ 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);
+ m_generalUniforms.SetFloatValue("u_halfWidth", 15.0f, 15.0f * m_modelView.GetScale());
+
+ m_generalUniforms.SetFloatValue("u_clipLength", 8.4f);
dp::Batcher::TFlushFn flushFn = bind(&df::TestingEngine::OnFlushData, this, _1, _2);
m_batcher->StartSession(flushFn);