mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-07-17 08:14:28 -04:00
20 lines
361 B
C++
20 lines
361 B
C++
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "PrimaryGLContext.h"
|
||
|
|
#include "Gradient.h"
|
||
|
|
|
||
|
|
#define NUM_WATERFALL_LINES 512
|
||
|
|
|
||
|
|
class MeterCanvas;
|
||
|
|
|
||
|
|
class MeterContext: public PrimaryGLContext {
|
||
|
|
public:
|
||
|
|
MeterContext(MeterCanvas *canvas, wxGLContext *sharedContext);
|
||
|
|
|
||
|
|
void DrawBegin();
|
||
|
|
void Draw(float r, float g, float b, float a, float level);
|
||
|
|
void DrawEnd();
|
||
|
|
|
||
|
|
private:
|
||
|
|
};
|