diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/GfxDevice/opengl/GLWindow.h |
Diffstat (limited to 'Runtime/GfxDevice/opengl/GLWindow.h')
-rw-r--r-- | Runtime/GfxDevice/opengl/GLWindow.h | 29 |
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 |