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>2019-02-21 13:08:14 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2019-03-01 10:45:24 +0300
commit9c04abf4810172f995ba316ce79d14b5aa06bf4d (patch)
tree287f799b169e1fc8290f9dff1442f10ffdfa55de /geometry
parente756f4e97567d3d5731a95fa23694b5351ab3fcd (diff)
[vulkan] Added depth format choose
Diffstat (limited to 'geometry')
-rw-r--r--geometry/screenbase.cpp7
-rw-r--r--geometry/screenbase.hpp4
2 files changed, 11 insertions, 0 deletions
diff --git a/geometry/screenbase.cpp b/geometry/screenbase.cpp
index 1721b3148f..68d1152a07 100644
--- a/geometry/screenbase.cpp
+++ b/geometry/screenbase.cpp
@@ -33,6 +33,7 @@ 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>();
@@ -126,6 +127,12 @@ 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 2278883134..a4915ba1db 100644
--- a/geometry/screenbase.hpp
+++ b/geometry/screenbase.hpp
@@ -98,6 +98,9 @@ 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;
@@ -178,6 +181,7 @@ 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