+
+private:
+
+ void init(const Attributes& attribs);
+
+ void recreateContext();
+ void setOpenGLAttributes();
+
+ void setIcon();
+
+ SDL_Surface* context_;
+ unsigned flags_;
+ Attributes attribs_;
+
+public:
+
+ inline static VideoP alloc(const std::string& caption,
+ const std::string& icon)
+ {
+ return VideoP(new Video(caption, icon));
+ }
+