mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-06-30 16:55:22 -04:00
21 lines
420 B
C
21 lines
420 B
C
|
#pragma once
|
||
|
|
||
|
#include "PrimaryGLContext.h"
|
||
|
#include "Gradient.h"
|
||
|
|
||
|
#define NUM_WATERFALL_LINES 512
|
||
|
|
||
|
class WaterfallCanvas;
|
||
|
|
||
|
class WaterfallContext: public PrimaryGLContext {
|
||
|
public:
|
||
|
WaterfallContext(WaterfallCanvas *canvas, wxGLContext *sharedContext);
|
||
|
|
||
|
void Draw(std::vector<float> &points);
|
||
|
|
||
|
private:
|
||
|
Gradient grad;
|
||
|
GLuint waterfall;
|
||
|
unsigned char waterfall_tex[FFT_SIZE * NUM_WATERFALL_LINES];
|
||
|
};
|