Fix GL information fetching.
[dcpomatic.git] / src / wx / gl_video_view.h
index 4a2184f407391b8703d76b1b4fffac6c86809618..bac195fb18016e5758d07a629bb48b8d71514a90 100644 (file)
@@ -40,19 +40,23 @@ public:
        GLVideoView (FilmViewer* viewer, wxWindow* parent);
        ~GLVideoView ();
 
-       wxWindow* get () const {
+       wxWindow* get () const override {
                return _canvas;
        }
-       void update ();
-       void start ();
-       void stop ();
+       void update () override;
+       void start () override;
+       void stop () override;
 
-       NextFrameResult display_next_frame (bool);
+       NextFrameResult display_next_frame (bool) override;
 
        bool vsync_enabled () const {
                return _vsync_enabled;
        }
 
+       std::map<GLenum, std::string> information () const {
+               return _information;
+       }
+
 private:
        void set_image (std::shared_ptr<const Image> image);
        void set_image_and_draw ();
@@ -86,4 +90,6 @@ private:
        bool _setup_shaders_done = false;
 
        std::shared_ptr<wxTimer> _timer;
+
+       std::map<GLenum, std::string> _information;
 };