diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-02-05 16:09:52 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-02-10 11:35:17 +0100 |
commit | 33b63f0ef6a0ea51b8f24ffe9b4a1f0b14e2dc1d (patch) | |
tree | ff99e9bc8ba5117aa9cf1e919801dfcf9883cccd /include | |
parent | d9244cc973cacb454960838287c8c47482b20e34 (diff) | |
download | qtlocation-mapboxgl-33b63f0ef6a0ea51b8f24ffe9b4a1f0b14e2dc1d.tar.gz |
[glfw] add "C" button to show stencil clip masks
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/platform/default/glfw_view.hpp | 5 |
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; |