initial commit

This commit is contained in:
Ryzerth
2020-06-10 04:13:56 +02:00
commit 8e1c6e9da6
36 changed files with 41895 additions and 0 deletions

25
src/waterfall.h Normal file
View File

@@ -0,0 +1,25 @@
#pragma once
#include <imgui.h>
#include <imgui_internal.h>
#include <vector>
#include <mutex>
#include <GL/glew.h>
namespace ImGui {
class WaterFall {
public:
WaterFall();
void draw();
void pushFFT(std::vector<float> data, int n);
private:
void drawWaterfall(ImGuiWindow* window, int width, int height, ImVec2 pos);
std::vector<std::vector<float>> fftBuffer;
bool newSamples;
std::mutex buf_mtx;
GLuint textureId;
uint8_t* pixelBuffer;
};
};