summaryrefslogtreecommitdiff
path: root/Runtime/GfxDevice/opengl/GLWindow.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-14 22:50:43 +0800
committerchai <chaifix@163.com>2019-08-14 22:50:43 +0800
commit15740faf9fe9fe4be08965098bbf2947e096aeeb (patch)
treea730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/GfxDevice/opengl/GLWindow.h
+Unity Runtime codeHEADmaster
Diffstat (limited to 'Runtime/GfxDevice/opengl/GLWindow.h')
-rw-r--r--Runtime/GfxDevice/opengl/GLWindow.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/Runtime/GfxDevice/opengl/GLWindow.h b/Runtime/GfxDevice/opengl/GLWindow.h
new file mode 100644
index 0000000..53f79b9
--- /dev/null
+++ b/Runtime/GfxDevice/opengl/GLWindow.h
@@ -0,0 +1,29 @@
+#ifndef GLWINDOW_H
+#define GLWINDOW_H
+
+#include "UnityGL.h"
+#include "Runtime/GfxDevice/GfxDeviceWindow.h"
+#include "GLContext.h"
+
+class GLWindow : public GfxDeviceWindow
+{
+private:
+ GraphicsContextHandle m_GLContext;
+ int cc;
+public:
+ GLWindow (NativeWindow window, int width, int height, DepthBufferFormat depthFormat, int antiAlias);
+ ~GLWindow();
+
+ bool Reshape( int width, int height, DepthBufferFormat depthFormat, int antiAlias );
+
+ bool BeginRendering();
+ bool EndRendering( bool presentContent );
+
+public:
+ static GLWindow* Current();
+
+
+};
+
+
+#endif