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 depthMemory(m_vertexes.size(), 0.0); + vector depthMemory(m_vertexes.size(), m_depth); { BindingInfo info(1); BindingDecl & decl = info.GetBindingDecl(0); diff --git a/drape_frontend/area_shape.hpp b/drape_frontend/area_shape.hpp index 1d13aa4a98..efd1e5d8a2 100644 --- a/drape_frontend/area_shape.hpp +++ b/drape_frontend/area_shape.hpp @@ -14,6 +14,7 @@ namespace df { public: AreaShape(Color const & c); + void SetDepth(float depth); void AddTriangle(const m2::PointF & v1, const m2::PointF & v2, @@ -24,5 +25,6 @@ namespace df private: Color m_color; vector m_vertexes; + float m_depth; }; }