diff options
author | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2019-02-25 14:48:41 +0300 |
---|---|---|
committer | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2019-03-01 10:45:24 +0300 |
commit | 162cddef32432e4edffc48801fb8facd4bb85fa0 (patch) | |
tree | 22f659e4647e54c9e6921b4ae4fe09dc770d69f5 /geometry | |
parent | e0b849c03cba9c911275db14bc1a3c663ec1740b (diff) |
[vulkan] Correction of Y and Z coordinates moved to the shaders.
Diffstat (limited to 'geometry')
-rw-r--r-- | geometry/screenbase.cpp | 7 | ||||
-rw-r--r-- | geometry/screenbase.hpp | 4 |
2 files changed, 0 insertions, 11 deletions
diff --git a/geometry/screenbase.cpp b/geometry/screenbase.cpp index 68d1152a07..1721b3148f 100644 --- a/geometry/screenbase.cpp +++ b/geometry/screenbase.cpp @@ -33,7 +33,6 @@ ScreenBase::ScreenBase() , m_3dScale(1.0) , m_isPerspective(false) , m_isAutoPerspective(false) - , m_isYInvertedIn3d(false) { m_GtoP = math::Identity<double, 3>(); m_PtoG = math::Identity<double, 3>(); @@ -127,12 +126,6 @@ void ScreenBase::SetAutoPerspective(bool isAutoPerspective) UpdateDependentParameters(); } -void ScreenBase::SetYInvertedIn3d(bool isYInverted) -{ - m_isYInvertedIn3d = isYInverted; - UpdateDependentParameters(); -} - void ScreenBase::SetFromRects(m2::AnyRectD const & glbRect, m2::RectD const & pxRect) { double hScale = glbRect.GetLocalRect().SizeX() / pxRect.SizeX(); diff --git a/geometry/screenbase.hpp b/geometry/screenbase.hpp index a4915ba1db..2278883134 100644 --- a/geometry/screenbase.hpp +++ b/geometry/screenbase.hpp @@ -98,9 +98,6 @@ public: bool isAutoPerspective() const { return m_isAutoPerspective; } void SetAutoPerspective(bool isAutoPerspective); - bool IsYInvertedIn3d() const { return m_isYInvertedIn3d; } - void SetYInvertedIn3d(bool isYInverted); - bool IsReverseProjection3d(m2::PointD const & pt) const; m2::PointD PtoP3d(m2::PointD const & pt) const; @@ -181,7 +178,6 @@ private: double m_3dScale; bool m_isPerspective; bool m_isAutoPerspective; - bool m_isYInvertedIn3d; }; /// checking whether the s1 transforms into s2 without scaling, only with shift and rotation |