More freedom of grab translation for all views

This commit is contained in:
Bruno Herbelin
2021-11-17 23:09:49 +01:00
parent fc4e3dc362
commit 6a3ff2f235
7 changed files with 16 additions and 7 deletions

3
View.h
View File

@@ -88,6 +88,9 @@ public:
// left-right [-1 1] and up-down [1 -1] action from arrow keys
virtual void arrow (glm::vec2) {}
// resolution on screen
glm::vec2 resolution() const;
// accessible scene
Scene scene;