2015-06-16 20:52:24 +02:00
|
|
|
#include "main/main.h"
|
2015-06-11 21:57:41 +02:00
|
|
|
#include "haiku_gl_view.h"
|
|
|
|
|
|
|
|
HaikuGLView::HaikuGLView(BRect frame, uint32 type)
|
2015-08-12 21:14:40 +02:00
|
|
|
: BGLView(frame, "GodotGLView", B_FOLLOW_ALL_SIDES, 0, type)
|
2015-06-11 21:57:41 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-06-16 20:52:24 +02:00
|
|
|
void HaikuGLView::AttachedToWindow(void) {
|
2015-06-11 21:57:41 +02:00
|
|
|
LockGL();
|
|
|
|
BGLView::AttachedToWindow();
|
|
|
|
UnlockGL();
|
|
|
|
MakeFocus();
|
|
|
|
}
|
|
|
|
|
2015-06-16 20:52:24 +02:00
|
|
|
void HaikuGLView::Draw(BRect updateRect) {
|
|
|
|
Main::force_redraw();
|
2015-06-11 21:57:41 +02:00
|
|
|
}
|