mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-05 17:01:16 -05:00
1e970f4373
- update demod WF from demodulator is jittery - adjustments with immediate update is awkward
22 lines
460 B
C++
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;
|
|
};
|