- struct Exception : public std::runtime_error
- {
- explicit Exception(const std::string& what_arg) :
- std::runtime_error(what_arg) {}
- };
-
-private:
- void init(const Attributes& attribs);
-
- void recreateContext();
- void setOpenGLAttributes();