21 #include "../../SDL_internal.h" 23 #if defined(__HAIKU__) 28 #include <storage/Path.h> 29 #include <storage/Entry.h> 38 #include "../../video/haiku/SDL_BWin.h" 48 StartBeApp(
void *unused)
52 App =
new SDL_BApp(
"application/x-SDL-executable");
64 if (SDL_BeAppActive <= 0) {
66 if (SDL_AppThread ==
NULL) {
67 return SDL_SetError(
"Couldn't create BApplication thread");
72 if (B_OK == be_app->GetAppInfo(&info)) {
73 entry_ref
ref = info.ref;
75 if (B_OK == entry.SetTo(&ref)) {
77 if (B_OK == path.SetTo(&entry)) {
78 if (B_OK == path.GetParent(&path)) {
87 }
while ((be_app ==
NULL) || be_app->IsLaunching());
108 if (SDL_BeAppActive == 0) {
109 if (SDL_AppThread !=
NULL) {
110 if (be_app !=
NULL) {
111 be_app->PostMessage(B_QUIT_REQUESTED);
114 SDL_AppThread =
NULL;
int32 _GetNumWindowSlots()
void _SetSDLWindow(SDL_Window *win, int32 winID)
SDL_Window * GetSDLWindow(int32 winID)
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
void ClearID(SDL_BWin *bwin)
GLsizei const GLchar *const * path