From 73e105d303cd187112f170320faf208f5625b700 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 21 Apr 2025 00:58:45 +0200 Subject: Add OpenGL audio meters. --- src/wx/gl_util.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/wx/gl_util.h') diff --git a/src/wx/gl_util.h b/src/wx/gl_util.h index 101a35721..f5baa04c7 100644 --- a/src/wx/gl_util.h +++ b/src/wx/gl_util.h @@ -23,6 +23,7 @@ #define DCPOMATIC_GL_UTIL_H +#include "lib/dcpomatic_assert.h" #include #include @@ -119,6 +120,20 @@ public: void draw() override; }; + class Line + { + public: + Line(Coords& coords); + + void set(wxSize canvas_size, int x1, int y1, int x2, int y2); + void draw(); + + private: + Coords& _coords; + int _node; + int _index; + }; + class FilledRectangleGroup { public: @@ -132,6 +147,7 @@ public: FilledRectangle add_filled_rectangle(); OutlineRectangle add_outline_rectangle(); + Line add_line(); void setup(); void set_array_buffer(); -- cgit v1.2.3