Tidied up main
This commit is contained in:
+3
-34
@@ -1,17 +1,16 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
* VISEQ - The Visual Sequencer
|
* VISEQ - The Visual Sequencer
|
||||||
* 2024 Sebastian Kujas
|
* 2024 Sebastian Kujas
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define RAYGUI_IMPLEMENTATION
|
#define RAYGUI_IMPLEMENTATION
|
||||||
#include <raylib.h>
|
#include <raylib.h>
|
||||||
#include <raymath.h>
|
#include <raymath.h>
|
||||||
|
|
||||||
#include "state.h"
|
#include "state.h"
|
||||||
#include "app-manager.h"
|
#include "app-manager.h"
|
||||||
#include "datatypes.h"
|
|
||||||
|
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -20,6 +19,7 @@
|
|||||||
|
|
||||||
|
|
||||||
VISEQ::APP::AppManager app;
|
VISEQ::APP::AppManager app;
|
||||||
|
|
||||||
std::shared_ptr<VISEQ::APP::State> state = VISEQ::APP::State::get();
|
std::shared_ptr<VISEQ::APP::State> state = VISEQ::APP::State::get();
|
||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
@@ -60,40 +60,9 @@ int main(){
|
|||||||
while(!WindowShouldClose()){
|
while(!WindowShouldClose()){
|
||||||
app.update();
|
app.update();
|
||||||
app.draw();
|
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();
|
CloseWindow();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user