summaryrefslogtreecommitdiff
path: root/include/mbgl/platform
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-02-05 16:09:52 +0100
committerKonstantin Käfer <mail@kkaefer.com>2016-02-10 11:35:17 +0100
commit33b63f0ef6a0ea51b8f24ffe9b4a1f0b14e2dc1d (patch)
treeff99e9bc8ba5117aa9cf1e919801dfcf9883cccd /include/mbgl/platform
parentd9244cc973cacb454960838287c8c47482b20e34 (diff)
downloadqtlocation-mapboxgl-33b63f0ef6a0ea51b8f24ffe9b4a1f0b14e2dc1d.tar.gz
[glfw] add "C" button to show stencil clip masks
Diffstat (limited to 'include/mbgl/platform')
-rw-r--r--include/mbgl/platform/default/glfw_view.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mbgl/platform/default/glfw_view.hpp b/include/mbgl/platform/default/glfw_view.hpp
index 2f74404201..ae5bf340d5 100644
--- a/include/mbgl/platform/default/glfw_view.hpp
+++ b/include/mbgl/platform/default/glfw_view.hpp
@@ -52,6 +52,9 @@ private:
makeSpriteImage(int width, int height, float pixelRatio);
void nextOrientation();
+ void toggleClipMasks();
+
+ void renderClipMasks();
void addRandomPointAnnotations(int count);
void addRandomShapeAnnotations(int count);
@@ -81,6 +84,8 @@ private:
int fbHeight;
float pixelRatio;
+ bool showClipMasks = false;
+
double lastX = 0, lastY = 0;
double lastClick = -1;