mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-06-30 00:45:16 -04:00
23 lines
503 B
C
23 lines
503 B
C
|
#pragma once
|
||
|
|
||
|
#include "PrimaryGLContext.h"
|
||
|
#include "Gradient.h"
|
||
|
|
||
|
#define NUM_WATERFALL_LINES 512
|
||
|
|
||
|
class TuningCanvas;
|
||
|
|
||
|
class TuningContext: public PrimaryGLContext {
|
||
|
public:
|
||
|
TuningContext(TuningCanvas *canvas, wxGLContext *sharedContext);
|
||
|
|
||
|
void DrawBegin();
|
||
|
void Draw(float r, float g, float b, float a, float level);
|
||
|
void DrawDemodFreqBw(long long freq, unsigned int bw, long long center);
|
||
|
void DrawEnd();
|
||
|
|
||
|
private:
|
||
|
std::locale comma_locale;
|
||
|
std::stringstream freqStr;
|
||
|
};
|