diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-15 15:30:44 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-15 15:30:44 +0100 |
commit | d11d99323d642ebb1cf84302b2b25019e95b5607 (patch) | |
tree | 8a2171c2929929b3d3195b6f0de25041998fc8c8 /ui/builders/freeExtend.h | |
parent | Remove unnecessary destructor (diff) | |
download | ilt-d11d99323d642ebb1cf84302b2b25019e95b5607.tar.bz2 ilt-d11d99323d642ebb1cf84302b2b25019e95b5607.tar.xz ilt-d11d99323d642ebb1cf84302b2b25019e95b5607.zip |
Add free extend builder with placeholder network support
Diffstat (limited to 'ui/builders/freeExtend.h')
-rw-r--r-- | ui/builders/freeExtend.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/builders/freeExtend.h b/ui/builders/freeExtend.h new file mode 100644 index 0000000..55fe7ff --- /dev/null +++ b/ui/builders/freeExtend.h @@ -0,0 +1,13 @@ +#pragma once +#include "../editNetwork.h" + +class Network; +class GeoData; + +class BuilderFreeExtend : public EditNetwork::Builder { + std::string hint() const override; + void click(Network * network, const GeoData * geoData, const SDL_MouseButtonEvent & e, const Ray & ray) override; + void move(Network * network, const GeoData * geoData, const SDL_MouseMotionEvent & e, const Ray & ray) override; + + std::optional<glm::vec3> p1; +}; |