Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 295efed

Browse files
committed
[glfw] Added queryPointAnnotations shortcut
1 parent 97cb862 commit 295efed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

platform/default/glfw_view.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,11 @@ void GLFWView::onKey(GLFWwindow *window, int key, int /*scancode*/, int action,
178178
case GLFW_KEY_Z:
179179
view->nextOrientation();
180180
break;
181-
case GLFW_KEY_Q:
181+
case GLFW_KEY_Q: {
182+
auto result = view->map->queryPointAnnotations({ {}, { double(view->getSize()[0]), double(view->getSize()[1]) } });
183+
printf("visible point annotations: %lu\n", result.size());
184+
} break;
185+
case GLFW_KEY_C:
182186
view->clearAnnotations();
183187
break;
184188
case GLFW_KEY_P:

0 commit comments

Comments
 (0)