haiku_gl_view.cpp 353 B

123456789101112131415161718
  1. #include "main/main.h"
  2. #include "haiku_gl_view.h"
  3. HaikuGLView::HaikuGLView(BRect frame, uint32 type)
  4. : BGLView(frame, "GodotGLView", B_FOLLOW_ALL_SIDES, 0, type)
  5. {
  6. }
  7. void HaikuGLView::AttachedToWindow(void) {
  8. LockGL();
  9. BGLView::AttachedToWindow();
  10. UnlockGL();
  11. MakeFocus();
  12. }
  13. void HaikuGLView::Draw(BRect updateRect) {
  14. Main::force_redraw();
  15. }