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
+8 -9
View File
@@ -35,15 +35,14 @@ namespace VISEQ::GRAPH::EDGES {
float connector_offset = 8.0f;
float switches_offset = 25.0f;
virtual bool GActive() {return active;}
virtual EdgeType getEdgeType() const {return edgeType;}
std::weak_ptr<NODES::Node> getNextNode(std::weak_ptr<NODES::Node> origin){
return start.lock() == origin.lock() ? end : start;
}
void draw(Vec2Df mouse_pos, Camera2D cam) {}
virtual bool GActive();
virtual EdgeType getEdgeType() const;
std::weak_ptr<NODES::Node> getNextNode(std::weak_ptr<NODES::Node> origin);
void draw(Vec2Df mouse_pos, Camera2D cam);
friend void to_json(json& j, const Edge& E);
friend void from_json(const json& j, Edge& E);
friend void to_json(json& j, const std::shared_ptr<Edge>& E);
friend void from_json(const json& j, std::shared_ptr<Edge>& E);
};
typedef std::shared_ptr<Edge> SPTR_Edge;