CubicSDR/src/visual/SpectrumContext.h

19 lines
353 B
C
Raw Normal View History

#pragma once
#include "PrimaryGLContext.h"
#include "Gradient.h"
#define NUM_WATERFALL_LINES 512
class SpectrumCanvas;
class SpectrumContext: public PrimaryGLContext {
public:
SpectrumContext(SpectrumCanvas *canvas, wxGLContext *sharedContext);
void Draw(std::vector<float> &points, int freq, int bandwidth);
private:
int fft_size;
};