Added new deemphasis mode + new image widget

This commit is contained in:
AlexandreRouma
2021-12-18 21:23:23 +01:00
parent 5483268f8f
commit f1a231b791
5 changed files with 252 additions and 19 deletions

View File

@@ -0,0 +1,34 @@
#pragma once
#include <imgui.h>
#include <imgui_internal.h>
#include <dsp/stream.h>
#include <mutex>
#include <GL/glew.h>
namespace ImGui {
class ImageDisplay {
public:
ImageDisplay(int width, int height, GLenum format);
~ImageDisplay();
void draw(const ImVec2& size_arg = ImVec2(0, 0));
void swap();
void* buffer;
private:
void updateTexture();
std::mutex bufferMtx;
void* activeBuffer;
int _width;
int _height;
GLenum _format;
GLuint textureId;
bool newData = false;
};
}