summaryrefslogtreecommitdiff
path: root/src/wx/simple_video_view.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-05-09 00:49:58 +0100
committerCarl Hetherington <cth@carlh.net>2019-05-10 23:43:55 +0100
commita8e31120a793f09ab56cc2847d76944ba698ba95 (patch)
tree535148c71dca072b2c2b4639e7da2228db353334 /src/wx/simple_video_view.h
parentf41818f14369f170475b7f2bde1a2dd856517b14 (diff)
Basics of OpenGL viewer.
Diffstat (limited to 'src/wx/simple_video_view.h')
-rw-r--r--src/wx/simple_video_view.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/wx/simple_video_view.h b/src/wx/simple_video_view.h
new file mode 100644
index 000000000..2eb62ab5f
--- /dev/null
+++ b/src/wx/simple_video_view.h
@@ -0,0 +1,34 @@
+/*
+ Copyright (C) 2019 Carl Hetherington <cth@carlh.net>
+
+ This file is part of DCP-o-matic.
+
+ DCP-o-matic is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ DCP-o-matic is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+class SimpleVideoView : public VideoView
+{
+public:
+ SimpleVideoView (wxWindow* parent);
+
+ void set_image (boost::shared_ptr<const Image> image);
+
+ wxWindow* get () const {
+ return _panel;
+ }
+
+private:
+ wxPanel* _panel;
+};