mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-01-23 05:55:35 -05:00
25 lines
526 B
C++
25 lines
526 B
C++
#pragma once
|
|
|
|
#include "PrimaryGLContext.h"
|
|
#include "Gradient.h"
|
|
#include "ColorTheme.h"
|
|
|
|
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[2];
|
|
unsigned char *waterfall_tex[2];
|
|
int fft_size;
|
|
int waterfall_lines;
|
|
|
|
ColorTheme *activeTheme;
|
|
};
|