22 #include "../../SDL_internal.h" 24 #if SDL_VIDEO_DRIVER_PSP 27 #include "../SDL_sysvideo.h" 32 #include "../../events/SDL_mouse_c.h" 33 #include "../../events/SDL_keyboard_c.h" 70 status = PSP_Available();
109 device->
free = PSP_Destroy;
170 current_mode.
w = 480;
171 current_mode.
h = 272;
206 #define EGLCHK(stmt) \ 211 err = eglGetError(); \ 212 if (err != EGL_SUCCESS) { \ 213 SDL_SetError("EGL error %d", err); \ #define SDL_MINOR_VERSION
void(* RestoreWindow)(_THIS, SDL_Window *window)
int PSP_SetDisplayMode(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode)
void PSP_GL_UnloadLibrary(_THIS)
SDL_GLContext PSP_GL_CreateContext(_THIS, SDL_Window *window)
#define SDL_MAJOR_VERSION
SDL_bool(* IsScreenKeyboardShown)(_THIS, SDL_Window *window)
A collection of pixels used in software blitting.
int(* GL_SetSwapInterval)(_THIS, int interval)
void(* ShowWindow)(_THIS, SDL_Window *window)
The structure that defines a display mode.
void(* SetWindowSize)(_THIS, SDL_Window *window)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
void PSP_DestroyWindow(_THIS, SDL_Window *window)
void PSP_RestoreWindow(_THIS, SDL_Window *window)
void PSP_SetWindowGrab(_THIS, SDL_Window *window, SDL_bool grabbed)
void PSP_MinimizeWindow(_THIS, SDL_Window *window)
void PSP_VideoQuit(_THIS)
int SDL_AddVideoDisplay(const SDL_VideoDisplay *display)
int(* GL_LoadLibrary)(_THIS, const char *path)
int PSP_GL_MakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context)
int PSP_GL_GetSwapInterval(_THIS)
struct SDL_GLDriverData * gl_data
int(* SetDisplayMode)(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode)
int PSP_CreateWindow(_THIS, SDL_Window *window)
void(* HideWindow)(_THIS, SDL_Window *window)
static SDL_AudioDeviceID device
void PSP_PumpEvents(_THIS)
void(* RaiseWindow)(_THIS, SDL_Window *window)
SDL_bool(* GetWindowWMInfo)(_THIS, SDL_Window *window, struct SDL_SysWMinfo *info)
SDL_GLContext(* GL_CreateContext)(_THIS, SDL_Window *window)
SDL_bool PSP_HasScreenKeyboardSupport(_THIS)
void PSP_SetWindowTitle(_THIS, SDL_Window *window)
void PSP_SetWindowSize(_THIS, SDL_Window *window)
void PSP_GL_DeleteContext(_THIS, SDL_GLContext context)
int(* GL_MakeCurrent)(_THIS, SDL_Window *window, SDL_GLContext context)
void PSP_ShowScreenKeyboard(_THIS, SDL_Window *window)
int PSP_GL_LoadLibrary(_THIS, const char *path)
SDL_bool PSP_GetWindowWMInfo(_THIS, SDL_Window *window, struct SDL_SysWMinfo *info)
SDL_DisplayMode current_mode
void(* DestroyWindow)(_THIS, SDL_Window *window)
void(* SetWindowIcon)(_THIS, SDL_Window *window, SDL_Surface *icon)
void PSP_SetWindowPosition(_THIS, SDL_Window *window)
SDL_bool(* HasScreenKeyboardSupport)(_THIS)
VideoBootStrap PSP_bootstrap
void PSP_SetWindowIcon(_THIS, SDL_Window *window, SDL_Surface *icon)
void(* GL_UnloadLibrary)(_THIS)
int PSP_GL_SetSwapInterval(_THIS, int interval)
void(* GetDisplayModes)(_THIS, SDL_VideoDisplay *display)
int(* CreateSDLWindow)(_THIS, SDL_Window *window)
#define SDL_OutOfMemory()
SDL_DisplayMode desktop_mode
int PSP_CreateWindowFrom(_THIS, SDL_Window *window, const void *data)
EGLSurface EGLNativeWindowType * window
void(* SetWindowPosition)(_THIS, SDL_Window *window)
int(* GL_SwapWindow)(_THIS, SDL_Window *window)
int PSP_GL_SwapWindow(_THIS, SDL_Window *window)
void(* ShowScreenKeyboard)(_THIS, SDL_Window *window)
void PSP_GetDisplayModes(_THIS, SDL_VideoDisplay *display)
void PSP_RaiseWindow(_THIS, SDL_Window *window)
The type used to identify a window.
void(* MinimizeWindow)(_THIS, SDL_Window *window)
void * PSP_GL_GetProcAddress(_THIS, const char *proc)
SDL_bool PSP_IsScreenKeyboardShown(_THIS, SDL_Window *window)
int(* CreateSDLWindowFrom)(_THIS, SDL_Window *window, const void *data)
void(* GL_DeleteContext)(_THIS, SDL_GLContext context)
void PSP_ShowWindow(_THIS, SDL_Window *window)
void PSP_HideWindow(_THIS, SDL_Window *window)
void(* SetWindowTitle)(_THIS, SDL_Window *window)
int(* GL_GetSwapInterval)(_THIS)
void(* MaximizeWindow)(_THIS, SDL_Window *window)
void PSP_MaximizeWindow(_THIS, SDL_Window *window)
void PSP_HideScreenKeyboard(_THIS, SDL_Window *window)
void(* SetWindowGrab)(_THIS, SDL_Window *window, SDL_bool grabbed)
#define SDL_Unsupported()
void *(* GL_GetProcAddress)(_THIS, const char *proc)
void(* PumpEvents)(_THIS)
void(* HideScreenKeyboard)(_THIS, SDL_Window *window)