Multi-window GL contexts.

This commit is contained in:
Ben Vanik
2015-09-07 09:08:54 -07:00
parent 5411b67e05
commit 539f69f368
2 changed files with 9 additions and 6 deletions

View File

@@ -30,7 +30,8 @@ namespace gl {
class GLContext : public GraphicsContext {
public:
static std::unique_ptr<GLContext> Create(Window* target_window);
static std::unique_ptr<GLContext> Create(Window* target_window,
GLContext* share_context = nullptr);
~GLContext() override;
@@ -53,7 +54,7 @@ class GLContext : public GraphicsContext {
explicit GLContext(Window* target_window);
GLContext(Window* target_window, HGLRC glrc);
bool Initialize(Window* target_window);
bool Initialize(Window* target_window, GLContext* share_context);
void AssertExtensionsPresent();
void SetupDebugging();