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>2016-09-14 17:25:56 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2016-09-26 16:19:29 +0300
commit1a1ebbcbe99a80210049bea08045da3ea7835d91 (patch)
tree8f2b80d91e72652b24e395f6a0a56652cfc77976 /drape_head
parenta115d10958f8617196d7c286ca04487ebfaee0ef (diff)
Added outline for houses
Diffstat (limited to 'drape_head')
-rw-r--r--drape_head/testing_engine.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/drape_head/testing_engine.cpp b/drape_head/testing_engine.cpp
index 162073862b..3b9eb8c7e0 100644
--- a/drape_head/testing_engine.cpp
+++ b/drape_head/testing_engine.cpp
@@ -120,7 +120,7 @@ public:
{
}
- void Draw(ref_ptr<dp::Batcher> batcher, ref_ptr<dp::TextureManager> textures) const
+ void Draw(ref_ptr<dp::Batcher> batcher, ref_ptr<dp::TextureManager> textures) const override
{
dp::TextureManager::TStipplePattern key;
key.push_back(10);
@@ -165,7 +165,7 @@ class DummyColorElement : public MapShape
public:
DummyColorElement() { }
- void Draw(ref_ptr<dp::Batcher> batcher, ref_ptr<dp::TextureManager> textures) const
+ void Draw(ref_ptr<dp::Batcher> batcher, ref_ptr<dp::TextureManager> textures) const override
{
dp::TextureManager::ColorRegion region;
textures->GetColorRegion(dp::Color(rand() % 256, rand() % 256, rand() % 256, 255), region);
@@ -398,7 +398,7 @@ void TestingEngine::Draw()
for (size_t i = 0; i < buckets.size(); ++i)
buckets[i]->CollectOverlayHandles(make_ref(&tree));
for (size_t i = 0; i < buckets.size(); ++i)
- buckets[i]->Render();
+ buckets[i]->Render(state.GetDrawAsLine());
tree.EndOverlayPlacing();
}
}
@@ -508,13 +508,13 @@ void TestingEngine::DrawImpl()
{
vector<m2::PointD> trg{ m2::PointD(110.0, 30.0), m2::PointD(112.0, 30.0), m2::PointD(112.0, 28.0),
m2::PointD(110.0, 30.0), m2::PointD(112.0, 28.0), m2::PointD(110.0, 28.0) };
- vector<df::BuildingEdge> edges;
+ df::BuildingOutline outline;
AreaViewParams p;
p.m_color = dp::Color::White();
p.m_depth = 0.0f;
params.m_minVisibleScale = 1;
params.m_rank = 0;
- AreaShape(move(trg), move(edges), p).Draw(make_ref(m_batcher), make_ref(m_textures));
+ AreaShape(move(trg), move(outline), p).Draw(make_ref(m_batcher), make_ref(m_textures));
}
m_batcher->EndSession();