compiling but mouse interaction is dead
This commit is contained in:
+6
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user