refactored main a bit

This commit is contained in:
Sebastian
2024-10-25 16:41:37 +02:00
parent f2f852e8dc
commit 18f12eb9f3
7 changed files with 438 additions and 233 deletions
+4 -6
View File
@@ -1,5 +1,7 @@
#pragma once
//#include "connection-manager.h"
//#include "signal-manager.h"
#ifdef _WIN32
#define _USE_MATH_DEFINES
#endif
@@ -133,11 +135,8 @@ Vec2D<T> operator*(const Vec2D<T>& left, T scalar){
return Vec2D<T>(left.x * scalar, left.y * scalar);
};
// State
enum States {IDLE, CONFIG};
struct AppState{
// App Settings
struct AppSettings{
int width;
int height;
float grid;
@@ -145,7 +144,6 @@ struct AppState{
float fps;
float speed = 16.0f;
int gui_selected_midi_out;
States state;
};
// MIDI