mirror of
https://github.com/godotengine/godot.git
synced 2024-12-03 09:52:18 +08:00
19 lines
353 B
C++
19 lines
353 B
C++
#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();
|
|
}
|