summaryrefslogtreecommitdiff
path: root/ui/builders/join.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-08 18:40:58 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-08 18:40:58 +0100
commit920ae293f6830833146a524345dfbf00669e785b (patch)
treeb971a645b4bb3347ac1ccac31efc05b9445b4ca4 /ui/builders/join.h
parentMove addStraight to impl.h (diff)
downloadilt-920ae293f6830833146a524345dfbf00669e785b.tar.bz2
ilt-920ae293f6830833146a524345dfbf00669e785b.tar.xz
ilt-920ae293f6830833146a524345dfbf00669e785b.zip
Add a rather dumb builder for joining nodes
Diffstat (limited to 'ui/builders/join.h')
-rw-r--r--ui/builders/join.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/ui/builders/join.h b/ui/builders/join.h
new file mode 100644
index 0000000..d4fb534
--- /dev/null
+++ b/ui/builders/join.h
@@ -0,0 +1,15 @@
+#pragma once
+#include "../editNetwork.h"
+
+class Network;
+class GeoData;
+
+class BuilderJoin : public EditNetwork::Builder {
+ void render(const Shader &) const override;
+ std::string hint() const override;
+ void click(Network * network, const GeoData * geoData, const SDL_MouseButtonEvent & e, const Ray & ray) override;
+
+ void create(Network * network, const NodePtr & p1, const NodePtr & p2) const;
+
+ NodePtr p1;
+};