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.
This commit is contained in:
Thiago Marcos P. Santos
2015-06-17 15:02:29 +03:00
committed by John Firebaugh
parent 4806f7f0a5
commit 4f3fc3c2c9
2 changed files with 75 additions and 8 deletions

View File

@@ -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;