diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-08 17:04:40 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-08 17:04:40 +0100 |
commit | f6890e8077133b5dd2cc0a92270d2a328d6c5ab9 (patch) | |
tree | e24cf13bf3e5d90409ed46a86f87668718e48fcf /ui/builders/straight.h | |
parent | Add collection methods for finding and/or creating objects (diff) | |
download | ilt-f6890e8077133b5dd2cc0a92270d2a328d6c5ab9.tar.bz2 ilt-f6890e8077133b5dd2cc0a92270d2a328d6c5ab9.tar.xz ilt-f6890e8077133b5dd2cc0a92270d2a328d6c5ab9.zip |
Initial commit of a basic working network editor
Diffstat (limited to 'ui/builders/straight.h')
-rw-r--r-- | ui/builders/straight.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ui/builders/straight.h b/ui/builders/straight.h new file mode 100644 index 0000000..77847dd --- /dev/null +++ b/ui/builders/straight.h @@ -0,0 +1,15 @@ +#pragma once +#include "../editNetwork.h" + +class Network; +class GeoData; + +class BuilderStraight : 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, glm::vec3 p1, glm::vec3 p2) const; + + std::optional<glm::vec3> p1; +}; |