CubicSDR/src/visual/WaterfallContext.h

26 lines
559 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, bool step);
void Setup(int fft_size_in, int num_waterfall_lines_in);
void refreshTheme();
private:
2015-01-20 22:26:34 -05:00
GLuint waterfall[2];
int waterfall_ofs[2];
int fft_size;
int waterfall_lines;
2015-02-09 22:01:33 -05:00
unsigned char *waterfall_slice;
ColorTheme *activeTheme;
};