feat: adsr gui

This commit is contained in:
2023-09-05 23:45:16 +04:00
parent a0514bad98
commit 54c4e540ac
6 changed files with 88 additions and 5 deletions

View File

@@ -3,13 +3,14 @@
#include "SynthGuiState.h"
#include "raylib.h"
#include <vector>
#include "ADSR.h"
class Renderer {
private:
void draw_main_panel(const Rectangle& panel_bounds);
void draw_add_oscillator_button(Synth& synth, SynthGuiState& synth_gui,
Rectangle panel_bounds);
void draw_oscillators_panels(
float draw_oscillators_panels(
const std::vector<Oscillator*>& oscillators,
const std::vector<OscillatorGuiState*>& gui_oscillators,
const Rectangle& panel_bounds);
@@ -18,7 +19,7 @@ class Renderer {
const std::vector<OscillatorGuiState*>& guiOscillators);
void draw_ui(Synth& synth, SynthGuiState& synth_gui);
void draw_signal(Synth& synth, SynthGuiState& synth_gui);
void draw_adsr_panel(ADSR* adsr, ADSRGuiState& gui_adsr, const Rectangle& panel_bounds, float panel_y_offset);
public:
Renderer(/* args */);
~Renderer();