GL4 command processor.

This commit is contained in:
Ben Vanik
2014-12-22 14:25:34 -08:00
parent 42e6a44624
commit f8325512d7
13 changed files with 1279 additions and 32 deletions

View File

@@ -10,6 +10,8 @@
#ifndef XENIA_GPU_GL4_WGL_CONTROL_H_
#define XENIA_GPU_GL4_WGL_CONTROL_H_
#include <poly/threading.h>
#include <poly/ui/loop.h>
#include <poly/ui/win32/win32_control.h>
#include <xenia/gpu/gl4/gl_context.h>
@@ -19,11 +21,13 @@ namespace gl4 {
class WGLControl : public poly::ui::win32::Win32Control {
public:
WGLControl();
WGLControl(poly::ui::Loop* loop);
~WGLControl() override;
GLContext* context() { return &context_; }
void SynchronousRepaint();
protected:
bool Create() override;
@@ -33,6 +37,7 @@ class WGLControl : public poly::ui::win32::Win32Control {
LPARAM lParam) override;
private:
poly::ui::Loop* loop_;
GLContext context_;
};