summaryrefslogtreecommitdiff
path: root/game/network/rail.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-07 12:04:33 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-07 12:04:33 +0000
commit68832526efafb4db60e5627eba6a9051585a4eb9 (patch)
treecb6059828786a60fa10c2017f43b7baf98ca86cc /game/network/rail.h
parentLinks have length, ends have entry direction (diff)
downloadilt-68832526efafb4db60e5627eba6a9051585a4eb9.tar.bz2
ilt-68832526efafb4db60e5627eba6a9051585a4eb9.tar.xz
ilt-68832526efafb4db60e5627eba6a9051585a4eb9.zip
Factor a lot of maths and stuff into utility
Diffstat (limited to 'game/network/rail.h')
-rw-r--r--game/network/rail.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/game/network/rail.h b/game/network/rail.h
index 3ab0c83..8fee27f 100644
--- a/game/network/rail.h
+++ b/game/network/rail.h
@@ -8,10 +8,13 @@
#include "gfx/renderable.h"
#include "link.h"
#include <glm/glm.hpp>
+#include <maths.h>
#include <memory>
#include <set>
+#include <sorting.hpp>
#include <utility>
#include <vector>
+
class Shader;
class Texture;
@@ -36,7 +39,6 @@ private:
RailLinkStraight(NodePtr, NodePtr, const glm::vec3 & diff);
};
-using Arc = std::pair<float, float>;
class RailLinkCurve : public RailLink {
public:
RailLinkCurve(const NodePtr &, const NodePtr &, glm::vec2);