Go to the documentation of this file.
21 #include "../../SDL_internal.h"
22 #include "../../main/haiku/SDL_BApp.h"
24 #if SDL_VIDEO_DRIVER_HAIKU
42 #define HAIKU_StartTextInput NULL
43 #define HAIKU_StopTextInput NULL
44 #define HAIKU_SetTextInputRect NULL
51 HAIKU_CreateDevice(
int devindex)
101 device->GL_LoadLibrary = HAIKU_GL_LoadLibrary;
102 device->GL_GetProcAddress = HAIKU_GL_GetProcAddress;
103 device->GL_UnloadLibrary = HAIKU_GL_UnloadLibrary;
104 device->GL_CreateContext = HAIKU_GL_CreateContext;
105 device->GL_MakeCurrent = HAIKU_GL_MakeCurrent;
106 device->GL_SetSwapInterval = HAIKU_GL_SetSwapInterval;
107 device->GL_GetSwapInterval = HAIKU_GL_GetSwapInterval;
108 device->GL_SwapWindow = HAIKU_GL_SwapWindow;
109 device->GL_DeleteContext = HAIKU_GL_DeleteContext;
112 device->StartTextInput = HAIKU_StartTextInput;
113 device->StopTextInput = HAIKU_StopTextInput;
114 device->SetTextInputRect = HAIKU_SetTextInputRect;
126 "haiku",
"Haiku graphics",
142 show = (cur || !mouse->
focus);
144 if (be_app->IsCursorHidden())
145 be_app->ShowCursor();
147 if (!be_app->IsCursorHidden())
148 be_app->HideCursor();
153 static void HAIKU_MouseInit(
_THIS)
176 HAIKU_MouseInit(
_this);
SDL_Mouse * SDL_GetMouse(void)
void HAIKU_SetWindowTitle(_THIS, SDL_Window *window)
int HAIKU_CreateWindow(_THIS, SDL_Window *window)
int HAIKU_QuitModes(_THIS)
int HAIKU_InitModes(_THIS)
void HAIKU_RaiseWindow(_THIS, SDL_Window *window)
void HAIKU_MinimizeWindow(_THIS, SDL_Window *window)
int HAIKU_SetWindowGammaRamp(_THIS, SDL_Window *window, const Uint16 *ramp)
int HAIKU_CreateWindowFrom(_THIS, SDL_Window *window, const void *data)
int HAIKU_Available(void)
int HAIKU_VideoInit(_THIS)
void HAIKU_RestoreWindow(_THIS, SDL_Window *window)
GLuint GLfloat GLfloat GLfloat x1
void HAIKU_SetWindowGrab(_THIS, SDL_Window *window, SDL_bool grabbed)
void HAIKU_SetWindowResizable(_THIS, SDL_Window *window, SDL_bool resizable)
void HAIKU_MaximizeWindow(_THIS, SDL_Window *window)
void HAIKU_PumpEvents(_THIS)
int HAIKU_SetClipboardText(_THIS, const char *text)
static SDL_VideoDevice * _this
void HAIKU_VideoQuit(_THIS)
void HAIKU_ShowWindow(_THIS, SDL_Window *window)
SDL_bool HAIKU_GetWindowWMInfo(_THIS, SDL_Window *window, struct SDL_SysWMinfo *info)
void HAIKU_InitOSKeymap(void)
void HAIKU_SetWindowIcon(_THIS, SDL_Window *window, SDL_Surface *icon)
void HAIKU_DestroyWindow(_THIS, SDL_Window *window)
int HAIKU_CreateWindowFramebuffer(_THIS, SDL_Window *window, Uint32 *format, void **pixels, int *pitch)
int HAIKU_GetWindowGammaRamp(_THIS, SDL_Window *window, Uint16 *ramp)
void HAIKU_SetWindowSize(_THIS, SDL_Window *window)
int HAIKU_UpdateWindowFramebuffer(_THIS, SDL_Window *window, const SDL_Rect *rects, int numrects)
void HAIKU_SetWindowBordered(_THIS, SDL_Window *window, SDL_bool bordered)
void HAIKU_SetWindowPosition(_THIS, SDL_Window *window)
int(* ShowCursor)(SDL_Cursor *cursor)
char * HAIKU_GetClipboardText(_THIS)
VideoBootStrap HAIKU_bootstrap
int HAIKU_GetDisplayBounds(_THIS, SDL_VideoDisplay *display, SDL_Rect *rect)
SDL_bool HAIKU_HasClipboardText(_THIS)
int HAIKU_SetDisplayMode(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode)
void HAIKU_HideWindow(_THIS, SDL_Window *window)
void HAIKU_DeleteDevice(_THIS)
void HAIKU_SetWindowFullscreen(_THIS, SDL_Window *window, SDL_VideoDisplay *display, SDL_bool fullscreen)
static SDL_AudioDeviceID device
void HAIKU_GetDisplayModes(_THIS, SDL_VideoDisplay *display)
void HAIKU_DestroyWindowFramebuffer(_THIS, SDL_Window *window)