struct GLOptions
{
+ enum
+ {
+ DEFAULT_VERSION = 0,
+ LATEST_VERSION = 0xFFFFFFFF
+ };
+
bool alpha;
bool stencil;
bool doublebuffer;
unsigned multisample;
bool forward_compatible;
+ bool core_profile;
unsigned gl_version_major;
unsigned gl_version_minor;
public:
unsupported_gl_mode(const GLOptions &);
virtual ~unsupported_gl_mode() throw () { }
+
+private:
+ static std::string format_version(const GLOptions &);
};
public:
GLContext(Window &wnd, const GLOptions &opts = GLOptions());
+ GLContext(Window &wnd, unsigned, unsigned);
private:
void platform_init(const GLOptions &);
public: