src/video/psp/SDL_pspvideo.h
changeset 7009 161b7b6a5303
child 7135 20db445af8c7
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/video/psp/SDL_pspvideo.h	Sun Mar 17 20:07:02 2013 +0800
     1.3 @@ -0,0 +1,102 @@
     1.4 +/*
     1.5 +  Simple DirectMedia Layer
     1.6 +  Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
     1.7 +
     1.8 +  This software is provided 'as-is', without any express or implied
     1.9 +  warranty.  In no event will the authors be held liable for any damages
    1.10 +  arising from the use of this software.
    1.11 +
    1.12 +  Permission is granted to anyone to use this software for any purpose,
    1.13 +  including commercial applications, and to alter it and redistribute it
    1.14 +  freely, subject to the following restrictions:
    1.15 +
    1.16 +  1. The origin of this software must not be misrepresented; you must not
    1.17 +     claim that you wrote the original software. If you use this software
    1.18 +     in a product, an acknowledgment in the product documentation would be
    1.19 +     appreciated but is not required.
    1.20 +  2. Altered source versions must be plainly marked as such, and must not be
    1.21 +     misrepresented as being the original software.
    1.22 +  3. This notice may not be removed or altered from any source distribution.
    1.23 +*/
    1.24 +
    1.25 +#ifndef __SDL_PANDORA_H__
    1.26 +#define __SDL_PANDORA_H__
    1.27 +
    1.28 +#include <GLES/egl.h>
    1.29 +
    1.30 +#include "SDL_config.h"
    1.31 +#include "../SDL_sysvideo.h"
    1.32 +
    1.33 +typedef struct SDL_VideoData
    1.34 +{
    1.35 +    SDL_bool egl_initialized;   /* OpenGL ES device initialization status */
    1.36 +    uint32_t egl_refcount;      /* OpenGL ES reference count              */
    1.37 +    
    1.38 +
    1.39 +
    1.40 +} SDL_VideoData;
    1.41 +
    1.42 +
    1.43 +typedef struct SDL_DisplayData
    1.44 +{
    1.45 +
    1.46 +} SDL_DisplayData;
    1.47 +
    1.48 +
    1.49 +typedef struct SDL_WindowData
    1.50 +{
    1.51 +    SDL_bool uses_gles;         /* if true window must support OpenGL ES */
    1.52 +    
    1.53 +} SDL_WindowData;
    1.54 +
    1.55 +
    1.56 +
    1.57 +
    1.58 +/****************************************************************************/
    1.59 +/* SDL_VideoDevice functions declaration                                    */
    1.60 +/****************************************************************************/
    1.61 +
    1.62 +/* Display and window functions */
    1.63 +int PSP_VideoInit(_THIS);
    1.64 +void PSP_VideoQuit(_THIS);
    1.65 +void PSP_GetDisplayModes(_THIS, SDL_VideoDisplay * display);
    1.66 +int PSP_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode);
    1.67 +int PSP_CreateWindow(_THIS, SDL_Window * window);
    1.68 +int PSP_CreateWindowFrom(_THIS, SDL_Window * window, const void *data);
    1.69 +void PSP_SetWindowTitle(_THIS, SDL_Window * window);
    1.70 +void PSP_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon);
    1.71 +void PSP_SetWindowPosition(_THIS, SDL_Window * window);
    1.72 +void PSP_SetWindowSize(_THIS, SDL_Window * window);
    1.73 +void PSP_ShowWindow(_THIS, SDL_Window * window);
    1.74 +void PSP_HideWindow(_THIS, SDL_Window * window);
    1.75 +void PSP_RaiseWindow(_THIS, SDL_Window * window);
    1.76 +void PSP_MaximizeWindow(_THIS, SDL_Window * window);
    1.77 +void PSP_MinimizeWindow(_THIS, SDL_Window * window);
    1.78 +void PSP_RestoreWindow(_THIS, SDL_Window * window);
    1.79 +void PSP_SetWindowGrab(_THIS, SDL_Window * window, SDL_bool grabbed);
    1.80 +void PSP_DestroyWindow(_THIS, SDL_Window * window);
    1.81 +
    1.82 +/* Window manager function */
    1.83 +SDL_bool PSP_GetWindowWMInfo(_THIS, SDL_Window * window,
    1.84 +                             struct SDL_SysWMinfo *info);
    1.85 +
    1.86 +/* OpenGL/OpenGL ES functions */
    1.87 +int PSP_GL_LoadLibrary(_THIS, const char *path);
    1.88 +void *PSP_GL_GetProcAddress(_THIS, const char *proc);
    1.89 +void PSP_GL_UnloadLibrary(_THIS);
    1.90 +SDL_GLContext PSP_GL_CreateContext(_THIS, SDL_Window * window);
    1.91 +int PSP_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
    1.92 +int PSP_GL_SetSwapInterval(_THIS, int interval);
    1.93 +int PSP_GL_GetSwapInterval(_THIS);
    1.94 +void PSP_GL_SwapWindow(_THIS, SDL_Window * window);
    1.95 +void PSP_GL_DeleteContext(_THIS, SDL_GLContext context);
    1.96 +
    1.97 +/*PSP on screen keyboard */
    1.98 +SDL_bool PSP_SDL_HasScreenKeyboardSupport(_THIS);
    1.99 +void PSP_SDL_ShowScreenKeyboard(_THIS, SDL_Window *window);
   1.100 +void PSP_SDL_HideScreenKeyboard(_THIS, SDL_Window *window);
   1.101 +SDL_bool PSP_SDL_IsScreenKeyboardShown(_THIS, SDL_Window *window);
   1.102 +    
   1.103 +#endif /* __SDL_PANDORA_H__ */
   1.104 +
   1.105 +/* vi: set ts=4 sw=4 expandtab: */