diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-10-17 12:48:47 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-10-17 12:48:47 -0300 |
commit | 6f9631fc5151b3267c6fcea5f70249fc36814db8 (patch) | |
tree | 2aa06230d95846602aa731967264c1619baa2a39 /platform/haiku/haiku_gl_view.cpp | |
parent | 63033aa646f7a49fbcecbc8cc30077cf268be10c (diff) | |
parent | be0f7563fbff581ca072504978bedc6a55e180f1 (diff) | |
download | redot-engine-6f9631fc5151b3267c6fcea5f70249fc36814db8.tar.gz |
Merge branch 'master' of https://github.com/okamstudio/godot
Diffstat (limited to 'platform/haiku/haiku_gl_view.cpp')
-rw-r--r-- | platform/haiku/haiku_gl_view.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/platform/haiku/haiku_gl_view.cpp b/platform/haiku/haiku_gl_view.cpp new file mode 100644 index 0000000000..481d6098a7 --- /dev/null +++ b/platform/haiku/haiku_gl_view.cpp @@ -0,0 +1,18 @@ +#include "main/main.h" +#include "haiku_gl_view.h" + +HaikuGLView::HaikuGLView(BRect frame, uint32 type) + : BGLView(frame, "GodotGLView", B_FOLLOW_ALL_SIDES, 0, type) +{ +} + +void HaikuGLView::AttachedToWindow(void) { + LockGL(); + BGLView::AttachedToWindow(); + UnlockGL(); + MakeFocus(); +} + +void HaikuGLView::Draw(BRect updateRect) { + Main::force_redraw(); +} |