CubicSDR/src/visual/WaterfallContext.h
Charles J. Cliffe 1e970f4373 Zoomed-in demodulator waterfall somewhat working
- update demod WF from demodulator is jittery
- adjustments with immediate update is awkward
2014-12-28 05:13:46 -05:00

22 lines
460 B
C++

#pragma once
#include "PrimaryGLContext.h"
#include "Gradient.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);
private:
Gradient grad;
GLuint waterfall;
unsigned char *waterfall_tex;
int fft_size;
int waterfall_lines;
};