feat: full rendering

This commit is contained in:
2023-08-08 22:07:41 +04:00
parent a1fef25838
commit 5c485047fb
4 changed files with 159 additions and 4 deletions

View File

@@ -1,9 +1,18 @@
#pragma once
#include "Synth.h"
#include "SynthGuiState.h"
#include <vector>
#include "raylib.h"
class Renderer
{
private:
void DrawMainPanel(const Rectangle& panel_bounds);
void DrawOscillatorsPanels(const std::vector<Oscillator*>& oscillators,
const std::vector<OscillatorGuiState*>& guiOscillators,
const Rectangle& panel_bounds);
void DrawOscillatorsShapeInputs(const std::vector<Oscillator*>& oscillators,
const std::vector<OscillatorGuiState*>& guiOscillators);
void DrawUi(Synth & synth, const SynthGuiState & synthGui);
void DrawSignal(Synth & synth, const SynthGuiState & synthGui);
public: