diff options
| author | Juan Linietsky <reduzio@gmail.com> | 2015-10-17 10:48:57 -0300 |
|---|---|---|
| committer | Juan Linietsky <reduzio@gmail.com> | 2015-10-17 10:48:57 -0300 |
| commit | c2515d352ed9324ec017ff29882d30bc0b3a5a0d (patch) | |
| tree | 3c6ddf5ec4cce813ee334a8ef1682fa823c40194 /platform/haiku/haiku_gl_view.cpp | |
| parent | c9ff40e1400c6351c57ec3c5734bc638ee42f3b7 (diff) | |
| parent | c925fbce2da5925009d5f78183e017f9252af35f (diff) | |
Merge pull request #2369 from Max-Might/master
Haiku: platform support
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(); +} |