blob: 8adab96a87d034ebad63cad1f5d35f5a769c55ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include "main/main.h"
#include "haiku_gl_view.h"
HaikuGLView::HaikuGLView(BRect frame, uint32 type)
: BGLView(frame, "SampleGLView", B_FOLLOW_ALL_SIDES, 0, type)
{
}
void HaikuGLView::AttachedToWindow(void) {
LockGL();
BGLView::AttachedToWindow();
UnlockGL();
MakeFocus();
}
void HaikuGLView::Draw(BRect updateRect) {
Main::force_redraw();
}
void HaikuGLView::MessageReceived(BMessage* msg)
{
// TODO: remove if not needed
switch (msg->what) {
default:
BGLView::MessageReceived(msg);
}
}
void HaikuGLView::MouseMoved (BPoint where, uint32 code, const BMessage *dragMessage) {
ERR_PRINT("MouseMoved()");
}
|