Zoom and pan in GUI
Compare changes
Files
2+ 41
− 5
@@ -72,6 +72,20 @@ ftl::gui::Screen::Screen(ftl::Configurable *proot, ftl::net::Universe *pnet, ftl
@@ -354,11 +368,28 @@ void ftl::gui::Screen::setActiveCamera(ftl::gui::Camera *cam) {
@@ -367,7 +398,10 @@ bool ftl::gui::Screen::mouseButtonEvent(const nanogui::Vector2i &p, int button,
@@ -391,8 +425,10 @@ bool ftl::gui::Screen::mouseButtonEvent(const nanogui::Vector2i &p, int button,
@@ -446,9 +482,9 @@ void ftl::gui::Screen::draw(NVGcontext *ctx) {