compiling but mouse interaction is dead

This commit is contained in:
Sebastian
2026-01-12 00:16:36 +01:00
parent 77a227f40d
commit d881ef43a3
23 changed files with 374 additions and 257 deletions
+6 -2
View File
@@ -18,8 +18,7 @@ namespace VISEQ::GRAPH::NODES {
class Node : public BASE::Draggable, public GraphItem, public std::enable_shared_from_this<Node> {
public:
Node() {std::cout << "Node constructor" << std::endl;}
Node() {}
Node(float x, float y) : Draggable(Vec2Df(x, y)) {}
Node(Vec2Df p) : Draggable(p) {}
@@ -54,6 +53,11 @@ namespace VISEQ::GRAPH::NODES {
void draw(Vec2Df mp, Camera2D cam) override;
void draw() override;
friend void to_json(json& j, const Node& N);
friend void from_json(const json& j, Node& N);
friend void to_json(json& j, const std::shared_ptr<Node>& N);
friend void from_json(const json& j, std::shared_ptr<Node>& N);
};
typedef std::shared_ptr<VISEQ::GRAPH::NODES::Node> SPTR_Node;