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();
108 device->
free = PSP_Destroy;
167 current_mode.
w = 480;
168 current_mode.
h = 272;
203 #define EGLCHK(stmt) \
208 err = eglGetError(); \
209 if (err != EGL_SUCCESS) { \
210 SDL_SetError("EGL error %d", err); \
299 SDL_SetError(
"application not compiled with SDL %d.%d\n",
void(* GetDisplayModes)(_THIS, SDL_VideoDisplay *display)
void(* MinimizeWindow)(_THIS, SDL_Window *window)
#define SDL_MINOR_VERSION
SDL_bool(* GetWindowWMInfo)(_THIS, SDL_Window *window, struct SDL_SysWMinfo *info)
SDL_bool(* IsScreenKeyboardShown)(_THIS, SDL_Window *window)
void(* RaiseWindow)(_THIS, SDL_Window *window)
int PSP_SetDisplayMode(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode)
DECLSPEC void *SDLCALL SDL_calloc(size_t nmemb, size_t size)
void(* HideWindow)(_THIS, SDL_Window *window)
int(* GL_MakeCurrent)(_THIS, SDL_Window *window, SDL_GLContext context)
#define SDL_MAJOR_VERSION
void PSP_GL_UnloadLibrary(_THIS)
void PSP_GL_DeleteContext(_THIS, SDL_GLContext context)
A collection of pixels used in software blitting.
DECLSPEC void SDLCALL SDL_free(void *mem)
void(* SetWindowGrab)(_THIS, SDL_Window *window, SDL_bool grabbed)
void PSP_GL_SwapWindow(_THIS, SDL_Window *window)
The structure that defines a display mode.
void(* SetWindowIcon)(_THIS, SDL_Window *window, SDL_Surface *icon)
SDL_bool(* HasScreenKeyboardSupport)(_THIS)
void PSP_DestroyWindow(_THIS, SDL_Window *window)
int(* CreateWindowFrom)(_THIS, SDL_Window *window, const void *data)
void PSP_RestoreWindow(_THIS, SDL_Window *window)
void PSP_SetWindowGrab(_THIS, SDL_Window *window, SDL_bool grabbed)
void PSP_MinimizeWindow(_THIS, SDL_Window *window)
int PSP_GL_MakeCurrent(_THIS, SDL_Window *window, SDL_GLContext context)
void PSP_VideoQuit(_THIS)
void(* HideScreenKeyboard)(_THIS, SDL_Window *window)
int SDL_AddVideoDisplay(const SDL_VideoDisplay *display)
struct SDL_GLDriverData * gl_data
int PSP_CreateWindow(_THIS, SDL_Window *window)
int(* GL_SetSwapInterval)(_THIS, int interval)
int(* CreateWindow)(_THIS, SDL_Window *window)
void(* GL_UnloadLibrary)(_THIS)
SDL_bool PSP_HasScreenKeyboardSupport(_THIS)
void PSP_SetWindowTitle(_THIS, SDL_Window *window)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
void PSP_SetWindowSize(_THIS, SDL_Window *window)
void PSP_ShowScreenKeyboard(_THIS, SDL_Window *window)
SDL_bool PSP_GetWindowWMInfo(_THIS, SDL_Window *window, struct SDL_SysWMinfo *info)
SDL_DisplayMode current_mode
DECLSPEC int SDLCALL SDL_SetError(const char *fmt,...)
void(* SetWindowPosition)(_THIS, SDL_Window *window)
int PSP_GL_LoadLibrary(_THIS, const char *path)
void(* PumpEvents)(_THIS)
void PSP_SetWindowPosition(_THIS, SDL_Window *window)
void PSP_SetWindowIcon(_THIS, SDL_Window *window, SDL_Surface *icon)
int(* GL_GetSwapInterval)(_THIS)
#define SDL_OutOfMemory()
SDL_DisplayMode desktop_mode
void * PSP_GL_GetProcAddress(_THIS, const char *proc)
SDL_GLContext PSP_GL_CreateContext(_THIS, SDL_Window *window)
void(* GL_DeleteContext)(_THIS, SDL_GLContext context)
void(* MaximizeWindow)(_THIS, SDL_Window *window)
void(* DestroyWindow)(_THIS, SDL_Window *window)
int PSP_CreateWindowFrom(_THIS, SDL_Window *window, const void *data)
void(* SetWindowSize)(_THIS, SDL_Window *window)
int(* SetDisplayMode)(_THIS, SDL_VideoDisplay *display, SDL_DisplayMode *mode)
void PSP_GetDisplayModes(_THIS, SDL_VideoDisplay *display)
void PSP_RaiseWindow(_THIS, SDL_Window *window)
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)
SDL_bool PSP_IsScreenKeyboardShown(_THIS, SDL_Window *window)
void PSP_PumpEvents(_THIS)
int PSP_GL_SetSwapInterval(_THIS, int interval)
void(* SetWindowTitle)(_THIS, SDL_Window *window)
void PSP_ShowWindow(_THIS, SDL_Window *window)
void PSP_HideWindow(_THIS, SDL_Window *window)
void PSP_MaximizeWindow(_THIS, SDL_Window *window)
void PSP_HideScreenKeyboard(_THIS, SDL_Window *window)
int PSP_GL_GetSwapInterval(_THIS)
void *(* GL_GetProcAddress)(_THIS, const char *proc)
void(* ShowScreenKeyboard)(_THIS, SDL_Window *window)
void(* RestoreWindow)(_THIS, SDL_Window *window)