summaryrefslogtreecommitdiff
path: root/src/wx/gl_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/gl_util.h')
-rw-r--r--src/wx/gl_util.h16
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();