diff --git a/src/main.cpp b/src/main.cpp index 1d734e4..b9ea6a9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,17 +1,16 @@ - /* * * VISEQ - The Visual Sequencer * 2024 Sebastian Kujas * */ + #define RAYGUI_IMPLEMENTATION #include #include #include "state.h" #include "app-manager.h" -#include "datatypes.h" #include #include @@ -20,6 +19,7 @@ VISEQ::APP::AppManager app; + std::shared_ptr state = VISEQ::APP::State::get(); int main(){ @@ -60,40 +60,9 @@ int main(){ while(!WindowShouldClose()){ app.update(); app.draw(); - - - - /*switch(istate){*/ - /* case InteractionState::SCALE_SELECTION:*/ - /* case InteractionState::HOVER_CANVAS:*/ - /* {*/ - /* for(auto &n : app.gm.nodes){ */ - /* n->hover_connect = false;*/ - /* }*/ - /* if(mouse_right_clicked){*/ - /* drag_distance = 0;*/ - /* }*/ - /* if(mouse_right_down) {*/ - /* canvas->camera.target = Vector2Add(canvas->camera.target, delta);*/ - /* drag_distance += delta.length();*/ - /* }*/ - /* if(mouse_right_released && drag_distance < 5) {*/ - /* node_menu_position = mouse_pos;*/ - /* istate = InteractionState::ADD_NODES_MENU;*/ - /* }*/ - /* break;*/ - /* }*/ - /* case InteractionState::ADD_NODES_MENU:*/ - /* {*/ - /* DrawCircleV(node_menu_position, 30, VS_COLOR_LIGHTGREY);*/ - /* DrawCircleLines(node_menu_position.x, node_menu_position.y, 32, VS_COLOR_DARKGREY);*/ - /**/ - /* }*/ - /*};*/ - } - app.close(); + app.close(); CloseWindow();