aboutsummaryrefslogtreecommitdiff
path: root/platform/haiku/context_gl_haiku.h
diff options
context:
space:
mode:
authorKostadin Damyanov2015-06-11 22:57:41 +0300
committerKostadin Damyanov2015-06-11 22:57:41 +0300
commit8df3e30abd06ce8d51e6b1ad696aabf97ea9f178 (patch)
tree9ebc12296d6d0f3bf68a4debe050066bb9b8936b /platform/haiku/context_gl_haiku.h
parentf99b72c04f484c39ae728bc175114544a26d7bca (diff)
downloadgodot-8df3e30abd06ce8d51e6b1ad696aabf97ea9f178.tar.gz
godot-8df3e30abd06ce8d51e6b1ad696aabf97ea9f178.tar.zst
godot-8df3e30abd06ce8d51e6b1ad696aabf97ea9f178.zip
Diffstat (limited to 'platform/haiku/context_gl_haiku.h')
-rw-r--r--platform/haiku/context_gl_haiku.h31
1 files changed, 31 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..16efa8f61
--- /dev/null
+++ b/platform/haiku/context_gl_haiku.h
@@ -0,0 +1,31 @@
+#ifndef CONTEXT_GL_HAIKU_H
+#define CONTEXT_GL_HAIKU_H
+
+#if defined(OPENGL_ENABLED) || defined(LEGACYGL_ENABLED)
+
+#include "os/os.h"
+#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;
+ OS::VideoMode video_mode;
+
+public:
+ ContextGL_Haiku(HaikuDirectWindow** p_window, OS::VideoMode& default_video_mode);
+ ~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