summaryrefslogtreecommitdiff
path: root/include/mbgl/platform
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2015-06-17 15:02:29 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2015-06-18 13:39:18 +0300
commit1f12bcee900732064e6956ac2c23c9066ab5779f (patch)
treebea01a8215b5415cb1ca4565eacbbea48719c7ca /include/mbgl/platform
parentff0e54f35a52bf2a4ddfce6e72c11418bd7b88ce (diff)
downloadqtlocation-mapboxgl-1f12bcee900732064e6956ac2c23c9066ab5779f.tar.gz
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.
Diffstat (limited to 'include/mbgl/platform')
-rw-r--r--include/mbgl/platform/default/glfw_view.hpp8
1 files changed, 8 insertions, 0 deletions
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;