signals run in own thread for super precision!

This commit is contained in:
Sebastian
2024-10-22 01:55:31 +02:00
parent 3e14a4a179
commit ad745a720e
6 changed files with 138 additions and 49 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ class ConnectionManager{
return paths.at(return_path)->v1 == current ? paths.at(return_path)->v2 : paths.at(return_path)->v1;
}
void draw(Vec2D<float> *mouse_pos, Camera2D *cam){
void drawConnections(Vec2D<float> *mouse_pos, Camera2D *cam){
std::erase_if(connections, [](Connection c){ return c.remove == true;});
for(auto& c : connections){
c.draw(mouse_pos, cam);