summaryrefslogtreecommitdiff
path: root/include/mbgl/platform/default/glfw_view.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/platform/default/glfw_view.hpp')
-rw-r--r--include/mbgl/platform/default/glfw_view.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mbgl/platform/default/glfw_view.hpp b/include/mbgl/platform/default/glfw_view.hpp
index 0e46f7d87e..ae5bf340d5 100644
--- a/include/mbgl/platform/default/glfw_view.hpp
+++ b/include/mbgl/platform/default/glfw_view.hpp
@@ -6,6 +6,7 @@
#ifdef MBGL_USE_GLES2
#define GLFW_INCLUDE_ES2
#endif
+#define GL_GLEXT_PROTOTYPES
#include <GLFW/glfw3.h>
#include <atomic>
@@ -51,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);
@@ -80,6 +84,8 @@ private:
int fbHeight;
float pixelRatio;
+ bool showClipMasks = false;
+
double lastX = 0, lastY = 0;
double lastClick = -1;