diff options
| author | Juan Linietsky | 2015-10-17 12:48:47 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-10-17 12:48:47 -0300 |
| commit | 6f9631fc5151b3267c6fcea5f70249fc36814db8 (patch) | |
| tree | 2aa06230d95846602aa731967264c1619baa2a39 /platform/haiku/context_gl_haiku.h | |
| parent | 63033aa646f7a49fbcecbc8cc30077cf268be10c (diff) | |
| parent | be0f7563fbff581ca072504978bedc6a55e180f1 (diff) | |
| download | godot-6f9631fc5151b3267c6fcea5f70249fc36814db8.tar.gz godot-6f9631fc5151b3267c6fcea5f70249fc36814db8.tar.zst godot-6f9631fc5151b3267c6fcea5f70249fc36814db8.zip | |
Merge branch 'master' of https://github.com/okamstudio/godot
Diffstat (limited to 'platform/haiku/context_gl_haiku.h')
| -rw-r--r-- | platform/haiku/context_gl_haiku.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/platform/haiku/context_gl_haiku.h b/platform/haiku/context_gl_haiku.h new file mode 100644 index 000000000..e37fe1497 --- /dev/null +++ b/platform/haiku/context_gl_haiku.h @@ -0,0 +1,29 @@ +#ifndef CONTEXT_GL_HAIKU_H +#define CONTEXT_GL_HAIKU_H + +#if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED) + +#include "drivers/gl_context/context_gl.h" + +#include "haiku_direct_window.h" +#include "haiku_gl_view.h" + +class ContextGL_Haiku : public ContextGL { +private: + HaikuGLView* view; + HaikuDirectWindow* window; + +public: + ContextGL_Haiku(HaikuDirectWindow* p_window); + ~ContextGL_Haiku(); + + virtual Error initialize(); + virtual void release_current(); + virtual void make_current(); + virtual void swap_buffers(); + virtual int get_window_width(); + virtual int get_window_height(); +}; + +#endif +#endif |
