summaryrefslogtreecommitdiff
path: root/src/wx/gl_video_view.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-04-18 01:03:52 +0200
committerCarl Hetherington <cth@carlh.net>2021-09-27 13:41:46 +0200
commit10f36696805235c774890a4618b7187dd75750d4 (patch)
tree3299c802986afe43654418c4ea708f89f61441d2 /src/wx/gl_video_view.h
parent486c4d7825a151dcf00e3504a8195bff8afddcb3 (diff)
Re-work OpenGL video view to use modern shaders / APIs.
Diffstat (limited to 'src/wx/gl_video_view.h')
-rw-r--r--src/wx/gl_video_view.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/wx/gl_video_view.h b/src/wx/gl_video_view.h
index 36edd6b8b..4a2184f40 100644
--- a/src/wx/gl_video_view.h
+++ b/src/wx/gl_video_view.h
@@ -63,13 +63,14 @@ private:
void check_for_butler_errors ();
void ensure_context ();
void size_changed (wxSizeEvent const &);
+ void setup_shaders ();
+ void set_border_colour (GLuint program);
wxGLCanvas* _canvas;
wxGLContext* _context;
boost::atomic<wxSize> _canvas_size;
-
- GLuint _id;
+ GLuint _texture;
boost::optional<dcp::Size> _size;
bool _have_storage;
bool _vsync_enabled;
@@ -80,5 +81,9 @@ private:
boost::atomic<bool> _playing;
boost::atomic<bool> _one_shot;
+ GLuint _vao;
+ GLint _draw_border;
+ bool _setup_shaders_done = false;
+
std::shared_ptr<wxTimer> _timer;
};