summaryrefslogtreecommitdiff
path: root/game/network/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/network/network.h')
-rw-r--r--game/network/network.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/game/network/network.h b/game/network/network.h
index f1ac23f..f37f335 100644
--- a/game/network/network.h
+++ b/game/network/network.h
@@ -15,6 +15,9 @@ class Texture;
class Shader;
class Ray;
+template<size_t... n> using GenDef = std::tuple<glm::vec<n, float>...>;
+using GenCurveDef = GenDef<3, 3, 2>;
+
class Network {
public:
using LinkEnd = std::pair<Link::Ptr, unsigned char>;
@@ -44,6 +47,7 @@ public:
protected:
static void joinLinks(const Link::Ptr & l, const Link::Ptr & ol);
+ static GenCurveDef genCurveDef(const glm::vec3 & start, const glm::vec3 & end, float startDir);
using Nodes = std::set<Node::Ptr, PtrMemberSorter<Node::Ptr, &Node::pos>>;
Nodes nodes;