CubicSDR/src/visual/WaterfallContext.h

25 lines
520 B
C
Raw Normal View History

#pragma once
#include "PrimaryGLContext.h"
#include "Gradient.h"
#include "ColorTheme.h"
2015-01-11 03:09:59 -05:00
class WaterfallCanvas;
class WaterfallContext: public PrimaryGLContext {
public:
WaterfallContext(WaterfallCanvas *canvas, wxGLContext *sharedContext);
void Draw(std::vector<float> &points);
void Setup(int fft_size_in, int num_waterfall_lines_in);
void refreshTheme();
private:
GLuint waterfall;
unsigned char *waterfall_tex;
int fft_size;
int waterfall_lines;
ColorTheme *activeTheme;
};