diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-01-10 13:57:51 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:10:01 +0300 |
commit | 459acded9fc1826b2441275e8f598549a37bb8fa (patch) | |
tree | 21c4e20c27332d21fd4faf3ef144071aaf2d84ca /drape_frontend/area_shape.cpp | |
parent | 7e232d12d7c866b707f4e32ff5edc85f468a5dcd (diff) |
[drape] add depth attribute
Diffstat (limited to 'drape_frontend/area_shape.cpp')
-rw-r--r-- | drape_frontend/area_shape.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drape_frontend/area_shape.cpp b/drape_frontend/area_shape.cpp index 0e7a755318..62b2ce50e2 100644 --- a/drape_frontend/area_shape.cpp +++ b/drape_frontend/area_shape.cpp @@ -7,9 +7,15 @@ namespace df { AreaShape::AreaShape(const Color & c) : m_color(c) + , m_depth(0.0f) { } + void AreaShape::SetDepth(float depth) + { + m_depth = depth; + } + void AreaShape::AddTriangle(const m2::PointF & v1, const m2::PointF & v2, const m2::PointF & v3) @@ -38,7 +44,7 @@ namespace df provider.InitStream(0, info, MakeStackRefPointer((void *)&m_vertexes[0])); } - vector<float> depthMemory(m_vertexes.size(), 0.0); + vector<float> depthMemory(m_vertexes.size(), m_depth); { BindingInfo info(1); BindingDecl & decl = info.GetBindingDecl(0); |