23 #if SDL_VIDEO_DRIVER_UIKIT
25 #import <UIKit/UIKit.h>
29 #include "../SDL_sysvideo.h"
30 #include "../SDL_pixels_c.h"
31 #include "../../events/SDL_events_c.h"
39 #define UIKITVID_DRIVER_NAME "uikit"
42 static int UIKit_VideoInit(
_THIS);
43 static void UIKit_VideoQuit(
_THIS);
59 UIKit_CreateDevice(
int devindex)
87 #if SDL_IPHONE_KEYBOARD
101 device->
free = UIKit_DeleteDevice;
109 UIKITVID_DRIVER_NAME,
"SDL UIKit video driver",
110 UIKit_Available, UIKit_CreateDevice
115 UIKit_VideoInit(
_THIS)
126 UIKit_VideoQuit(
_THIS)
138 void SDL_NSLog(
const char *text)
void(* GetDisplayModes)(_THIS, SDL_VideoDisplay *display)
int UIKit_InitModes(_THIS)
void UIKit_QuitModes(_THIS)
SDL_bool(* GetWindowWMInfo)(_THIS, SDL_Window *window, struct SDL_SysWMinfo *info)
SDL_bool(* IsScreenKeyboardShown)(_THIS, SDL_Window *window)
void(* RaiseWindow)(_THIS, SDL_Window *window)
void UIKit_PumpEvents(_THIS)
SDL_bool UIKit_GetWindowWMInfo(_THIS, SDL_Window *window, struct SDL_SysWMinfo *info)
int UIKit_CreateWindow(_THIS, SDL_Window *window)
DECLSPEC void *SDLCALL SDL_calloc(size_t nmemb, size_t size)
void UIKit_DestroyWindow(_THIS, SDL_Window *window)
void(* HideWindow)(_THIS, SDL_Window *window)
int(* GL_MakeCurrent)(_THIS, SDL_Window *window, SDL_GLContext context)
void UIKit_GL_DeleteContext(_THIS, SDL_GLContext context)
DECLSPEC void SDLCALL SDL_free(void *mem)
void UIKit_RaiseWindow(_THIS, SDL_Window *window)
SDL_bool(* HasScreenKeyboardSupport)(_THIS)
void UIKit_HideWindow(_THIS, SDL_Window *window)
int UIKit_GL_LoadLibrary(_THIS, const char *path)
void UIKit_GetDisplayModes(_THIS, SDL_VideoDisplay *display)
void(* HideScreenKeyboard)(_THIS, SDL_Window *window)
static SDL_VideoDevice * _this
int(* CreateWindow)(_THIS, SDL_Window *window)
void UIKit_SetWindowFullscreen(_THIS, SDL_Window *window, SDL_VideoDisplay *display, SDL_bool fullscreen)
void(* PumpEvents)(_THIS)
void UIKit_GL_SwapWindow(_THIS, SDL_Window *window)
SDL_GLContext UIKit_GL_CreateContext(_THIS, SDL_Window *window)
void * UIKit_GL_GetProcAddress(_THIS, const char *proc)
#define SDL_OutOfMemory()
void(* GL_DeleteContext)(_THIS, SDL_GLContext context)
void(* DestroyWindow)(_THIS, SDL_Window *window)
int(* SetDisplayMode)(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode)
SDL_GLContext(* GL_CreateContext)(_THIS, SDL_Window *window)
int(* GL_LoadLibrary)(_THIS, const char *path)
void(* GL_SwapWindow)(_THIS, SDL_Window *window)
void(* ShowWindow)(_THIS, SDL_Window *window)
void(* SetWindowFullscreen)(_THIS, SDL_Window *window, SDL_VideoDisplay *display, SDL_bool fullscreen)
void UIKit_ShowWindow(_THIS, SDL_Window *window)
struct SDL_VideoDevice::@87 gl_config
void *(* GL_GetProcAddress)(_THIS, const char *proc)
int UIKit_GL_MakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context)
void(* ShowScreenKeyboard)(_THIS, SDL_Window *window)
int UIKit_SetDisplayMode(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode)