summaryrefslogtreecommitdiff
path: root/include/mbgl/gl
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-05-24 17:30:54 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-05-24 19:58:24 +0300
commit876bf0687a6e2b6b5dd491b65dad587c688aa56d (patch)
tree6f51fed2150789d124baa70c3c461337bca00965 /include/mbgl/gl
parent9732f02422eb5cd5852d47e888b061aaf6ffe0bd (diff)
downloadqtlocation-mapboxgl-876bf0687a6e2b6b5dd491b65dad587c688aa56d.tar.gz
[core] Added PixelZoom, RasterPos to GL config
Diffstat (limited to 'include/mbgl/gl')
-rw-r--r--include/mbgl/gl/gl_values.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbgl/gl/gl_values.hpp b/include/mbgl/gl/gl_values.hpp
index 2ebfe2e687..b96cfe310e 100644
--- a/include/mbgl/gl/gl_values.hpp
+++ b/include/mbgl/gl/gl_values.hpp
@@ -269,6 +269,10 @@ struct PixelZoom {
}
};
+inline bool operator!=(const PixelZoom::Type& a, const PixelZoom::Type& b) {
+ return a.xfactor != b.xfactor || a.yfactor != b.yfactor;
+}
+
struct RasterPos {
using Type = std::array<GLdouble, 4>;
static const Type Default;