21 #include "../../SDL_internal.h" 23 #if defined(__HAIKU__) 28 #include <storage/Path.h> 29 #include <storage/Entry.h> 37 #include "../../video/haiku/SDL_BWin.h" 43 #include "../../thread/SDL_systhread.h" 50 StartBeApp(
void *unused)
54 App =
new SDL_BApp(
"application/x-SDL-executable");
66 if (SDL_BeAppActive <= 0) {
68 if (SDL_AppThread ==
NULL) {
69 return SDL_SetError(
"Couldn't create BApplication thread");
74 if (B_OK == be_app->GetAppInfo(&info)) {
75 entry_ref
ref = info.ref;
77 if (B_OK == entry.SetTo(&ref)) {
79 if (B_OK == path.SetTo(&entry)) {
80 if (B_OK == path.GetParent(&path)) {
89 }
while ((be_app ==
NULL) || be_app->IsLaunching());
110 if (SDL_BeAppActive == 0) {
111 if (SDL_AppThread !=
NULL) {
112 if (be_app !=
NULL) {
113 be_app->PostMessage(B_QUIT_REQUESTED);
116 SDL_AppThread =
NULL;
int32 _GetNumWindowSlots()
void _SetSDLWindow(SDL_Window *win, int32 winID)
SDL_Thread * SDL_CreateThreadInternal(int(*fn)(void *), const char *name, const size_t stacksize, void *data)
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)
SDL_Window * GetSDLWindow(int32 winID)
void ClearID(SDL_BWin *bwin)
GLsizei const GLchar *const * path