diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-04-21 00:58:45 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-04-28 02:31:15 +0200 |
| commit | 73e105d303cd187112f170320faf208f5625b700 (patch) | |
| tree | 9be98706f3d7b411f0c0f1989decbf0a1ac1f6cd /src/wx/gl_util.h | |
| parent | 05b7c7ebb03187664c73dc91e08135a15237558d (diff) | |
Add OpenGL audio meters.465-vumeters-take2
Diffstat (limited to 'src/wx/gl_util.h')
| -rw-r--r-- | src/wx/gl_util.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 <dcp/types.h> #include <wx/wx.h> @@ -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(); |
