#include <wx/glcanvas.h>
#include <dcp/util.h>
#include <boost/shared_ptr.hpp>
-
#undef None
#undef Success
class GLVideoView : public VideoView
{
public:
- GLVideoView (wxWindow* parent);
+ GLVideoView (FilmViewer* viewer, wxWindow* parent);
~GLVideoView ();
void set_image (boost::shared_ptr<const Image> image);
}
void update ();
+ bool vsync_enabled () const {
+ return _vsync_enabled;
+ }
+
private:
void paint ();
void draw ();
wxGLContext* _context;
GLuint _id;
boost::optional<dcp::Size> _size;
+ bool _vsync_enabled;
};