summaryrefslogtreecommitdiff
path: root/ui/builders/straight.h
blob: 1cde2b04feea20734d6cc7d60217040a54f5905c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once
#include "../editNetwork.h"

class Network;
class GeoData;

class BuilderStraight : 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;

	void create(Network * network, glm::vec3 p1, glm::vec3 p2) const;

	std::optional<glm::vec3> p1;
};