[refactor]: c++ implementation (#13)

implemented in c++ to improve readability and simplify maintenance

Co-authored-by: HiveBeats <e1lama@protonmail.com>
Reviewed-on: #13
This commit is contained in:
2023-08-08 22:08:18 +03:00
parent bcb75a65f9
commit a445fc44b3
31 changed files with 1006 additions and 1054 deletions

16
inc/SynthGuiState.h Normal file
View File

@@ -0,0 +1,16 @@
#pragma once
#include "OscillatorType.h"
#include "raygui.h"
#include <vector>
struct OscillatorGuiState {
float volume;
float freq;//todo: remove or change to pitch shift
OscillatorType waveshape;
bool is_dropdown_open;
Rectangle shape_dropdown_rect;
};
struct SynthGuiState {
std::vector<OscillatorGuiState*> oscillators;
};