mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-12-27 00:20:56 -05:00
- Seen on Windows: Bookmarkview slow update because the controls are self-reacting to the rebuild control events, so fix nullify them during control rebuilding. - Update OpenGL initialization using v3.1 level context and canvas attributes instead of the deprecated calls.
23 lines
462 B
C++
23 lines
462 B
C++
// Copyright (c) Charles J. Cliffe
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
#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, wxGLContextAttrs *ctxAttrs);
|
|
|
|
void DrawBegin();
|
|
void Draw(float r, float g, float b, float a, float level);
|
|
void DrawEnd();
|
|
|
|
private:
|
|
};
|