From 4f3fc3c2c975e1d02f3cdd2041e413c9bc159cb4 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Wed, 17 Jun 2015 15:02:29 +0300 Subject: Support shape annotations on GLFWView Add different random triangles count by using the keys 7, 8, 9 or 0. Q will clear all the annotations. W will remove one annotation. --- include/mbgl/platform/default/glfw_view.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/mbgl/platform/default/glfw_view.hpp b/include/mbgl/platform/default/glfw_view.hpp index 094974b59c..9a7e29fe29 100644 --- a/include/mbgl/platform/default/glfw_view.hpp +++ b/include/mbgl/platform/default/glfw_view.hpp @@ -37,7 +37,15 @@ public: void fps(); private: + mbgl::LatLng makeRandomPoint() const; + void addRandomPointAnnotations(int count); + void addRandomShapeAnnotations(int count); + + void clearAnnotations(); + void popAnnotation(); + + mbgl::AnnotationIDs annotationIDs; private: bool fullscreen = false; -- cgit v1.2.1