diff options
| author | Kostadin Damyanov | 2015-06-11 22:57:41 +0300 |
|---|---|---|
| committer | Kostadin Damyanov | 2015-06-11 22:57:41 +0300 |
| commit | 8df3e30abd06ce8d51e6b1ad696aabf97ea9f178 (patch) | |
| tree | 9ebc12296d6d0f3bf68a4debe050066bb9b8936b /platform/haiku/haiku_direct_window.h | |
| parent | f99b72c04f484c39ae728bc175114544a26d7bca (diff) | |
| download | godot-8df3e30abd06ce8d51e6b1ad696aabf97ea9f178.tar.gz godot-8df3e30abd06ce8d51e6b1ad696aabf97ea9f178.tar.zst godot-8df3e30abd06ce8d51e6b1ad696aabf97ea9f178.zip | |
Diffstat (limited to 'platform/haiku/haiku_direct_window.h')
| -rw-r--r-- | platform/haiku/haiku_direct_window.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/platform/haiku/haiku_direct_window.h b/platform/haiku/haiku_direct_window.h new file mode 100644 index 000000000..450ea6429 --- /dev/null +++ b/platform/haiku/haiku_direct_window.h @@ -0,0 +1,27 @@ +#ifndef HAIKU_DIRECT_WINDOW_H +#define HAIKU_DIRECT_WINDOW_H + +#include <kernel/image.h> // needed for image_id +#include <DirectWindow.h> + +#include "haiku_gl_view.h" + +#define REDRAW_MSG 'rdrw' + +class HaikuDirectWindow : public BDirectWindow +{ +public: + HaikuDirectWindow(BRect p_frame); + ~HaikuDirectWindow(); + + void SetHaikuGLView(HaikuGLView* p_view); + void InitMessageRunner(); + virtual bool QuitRequested(); + virtual void DirectConnected(direct_buffer_info *info); + +private: + HaikuGLView* view; + BMessageRunner* update_runner; +}; + +#endif |
