| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| |
| |
| |
| |
|
|
| |
| |
| |
| |
| |
|
|
| |
| |
| |
| |
| |
| |
| |
|
|
| |
|
|
| #ifdef SDL_NO_COMPAT |
| #define _SDL_compat_h |
| #endif |
|
|
| #ifndef _SDL_compat_h |
| #define _SDL_compat_h |
|
|
| #include "SDL_video.h" |
| #include "SDL_version.h" |
|
|
| #include "begin_code.h" |
| |
| #ifdef __cplusplus |
| |
| extern "C" { |
| |
| #endif |
|
|
| |
| |
| |
| |
|
|
| |
| #ifdef __WIN32__ |
| #undef __WIN32__ |
| #define __WIN32__ 1 |
| #endif |
|
|
| |
| |
| |
| |
| #define SDL_SWSURFACE 0x00000000 |
| #define SDL_SRCALPHA 0x00010000 |
| #define SDL_SRCCOLORKEY 0x00020000 |
| #define SDL_ANYFORMAT 0x00100000 |
| #define SDL_HWPALETTE 0x00200000 |
| #define SDL_DOUBLEBUF 0x00400000 |
| #define SDL_FULLSCREEN 0x00800000 |
| #define SDL_RESIZABLE 0x01000000 |
| #define SDL_NOFRAME 0x02000000 |
| #define SDL_OPENGL 0x04000000 |
| #define SDL_HWSURFACE 0x08000001 |
| #define SDL_ASYNCBLIT 0x08000000 |
| #define SDL_RLEACCELOK 0x08000000 |
| #define SDL_HWACCEL 0x08000000 |
| |
|
|
| #define SDL_APPMOUSEFOCUS 0x01 |
| #define SDL_APPINPUTFOCUS 0x02 |
| #define SDL_APPACTIVE 0x04 |
|
|
| #define SDL_LOGPAL 0x01 |
| #define SDL_PHYSPAL 0x02 |
|
|
| #define SDL_ACTIVEEVENT SDL_EVENT_COMPAT1 |
| #define SDL_VIDEORESIZE SDL_EVENT_COMPAT2 |
| #define SDL_VIDEOEXPOSE SDL_EVENT_COMPAT3 |
| #define SDL_ACTIVEEVENTMASK SDL_ACTIVEEVENT, SDL_ACTIVEEVENT |
| #define SDL_VIDEORESIZEMASK SDL_VIDEORESIZE, SDL_VIDEORESIZE |
| #define SDL_VIDEOEXPOSEMASK SDL_VIDEOEXPOSE, SDL_VIDEOEXPOSE |
| #define SDL_WINDOWEVENTMASK SDL_WINDOWEVENT, SDL_WINDOWEVENT |
| #define SDL_KEYDOWNMASK SDL_KEYDOWN, SDL_KEYDOWN |
| #define SDL_KEYUPMASK SDL_KEYUP, SDL_KEYUP |
| #define SDL_KEYEVENTMASK SDL_KEYDOWN, SDL_KEYUP |
| #define SDL_TEXTEDITINGMASK SDL_TEXTEDITING, SDL_TEXTEDITING |
| #define SDL_TEXTINPUTMASK SDL_TEXTINPUT, SDL_TEXTINPUT |
| #define SDL_MOUSEMOTIONMASK SDL_MOUSEMOTION, SDL_MOUSEMOTION |
| #define SDL_MOUSEBUTTONDOWNMASK SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONDOWN |
| #define SDL_MOUSEBUTTONUPMASK SDL_MOUSEBUTTONUP, SDL_MOUSEBUTTONUP |
| #define SDL_MOUSEWHEELMASK SDL_MOUSEWHEEL, SDL_MOUSEWHEEL |
| #define SDL_MOUSEEVENTMASK SDL_MOUSEMOTION, SDL_MOUSEBUTTONUP |
| #define SDL_JOYAXISMOTIONMASK SDL_JOYAXISMOTION, SDL_JOYAXISMOTION |
| #define SDL_JOYBALLMOTIONMASK SDL_JOYBALLMOTION, SDL_JOYBALLMOTION |
| #define SDL_JOYHATMOTIONMASK SDL_JOYHATMOTION, SDL_JOYHATMOTION |
| #define SDL_JOYBUTTONDOWNMASK SDL_JOYBUTTONDOWN, SDL_JOYBUTTONDOWN |
| #define SDL_JOYBUTTONUPMASK SDL_JOYBUTTONUP, SDL_JOYBUTTONUP |
| #define SDL_JOYEVENTMASK SDL_JOYAXISMOTION, SDL_JOYBUTTONUP |
| #define SDL_QUITMASK SDL_QUIT, SDL_QUIT |
| #define SDL_SYSWMEVENTMASK SDL_SYSWMEVENT, SDL_SYSWMEVENT |
| #define SDL_PROXIMITYINMASK SDL_PROXIMITYIN, SDL_PROXIMITYIN |
| #define SDL_PROXIMITYOUTMASK SDL_PROXIMITYOUT, SDL_PROXIMITYOUT |
| #define SDL_ALLEVENTS SDL_FIRSTEVENT, SDL_LASTEVENT |
|
|
| #define SDL_BUTTON_WHEELUP 4 |
| #define SDL_BUTTON_WHEELDOWN 5 |
|
|
| #define SDL_DEFAULT_REPEAT_DELAY 500 |
| #define SDL_DEFAULT_REPEAT_INTERVAL 30 |
|
|
| typedef struct SDL_VideoInfo |
| { |
| Uint32 hw_available:1; |
| Uint32 wm_available:1; |
| Uint32 UnusedBits1:6; |
| Uint32 UnusedBits2:1; |
| Uint32 blit_hw:1; |
| Uint32 blit_hw_CC:1; |
| Uint32 blit_hw_A:1; |
| Uint32 blit_sw:1; |
| Uint32 blit_sw_CC:1; |
| Uint32 blit_sw_A:1; |
| Uint32 blit_fill:1; |
| Uint32 UnusedBits3:16; |
| Uint32 video_mem; |
|
|
| SDL_PixelFormat *vfmt; |
|
|
| int current_w; |
| int current_h; |
| } SDL_VideoInfo; |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #define SDL_YV12_OVERLAY 0x32315659 |
| #define SDL_IYUV_OVERLAY 0x56555949 |
| #define SDL_YUY2_OVERLAY 0x32595559 |
| #define SDL_UYVY_OVERLAY 0x59565955 |
| #define SDL_YVYU_OVERLAY 0x55595659 |
| |
|
|
| |
| |
| |
| typedef struct SDL_Overlay |
| { |
| Uint32 format; |
| int w, h; |
| int planes; |
| Uint16 *pitches; |
| Uint8 **pixels; |
|
|
| |
| |
| |
| |
| struct private_yuvhwfuncs *hwfuncs; |
| struct private_yuvhwdata *hwdata; |
| |
|
|
| |
| |
| |
| |
| Uint32 hw_overlay:1; |
| Uint32 UnusedBits:31; |
| |
| } SDL_Overlay; |
|
|
| typedef enum |
| { |
| SDL_GRAB_QUERY = -1, |
| SDL_GRAB_OFF = 0, |
| SDL_GRAB_ON = 1 |
| } SDL_GrabMode; |
|
|
| struct SDL_SysWMinfo; |
|
|
| |
| |
| |
| |
|
|
| #define SDL_keysym SDL_Keysym |
| #define SDL_KeySym SDL_Keysym |
| #define SDL_scancode SDL_Scancode |
| #define SDL_ScanCode SDL_Scancode |
| #define SDLKey SDL_Keycode |
| #define SDLMod SDL_Keymod |
|
|
| |
| |
| |
| |
| |
| |
| #define SDLK_KP0 SDLK_KP_0 |
| #define SDLK_KP1 SDLK_KP_1 |
| #define SDLK_KP2 SDLK_KP_2 |
| #define SDLK_KP3 SDLK_KP_3 |
| #define SDLK_KP4 SDLK_KP_4 |
| #define SDLK_KP5 SDLK_KP_5 |
| #define SDLK_KP6 SDLK_KP_6 |
| #define SDLK_KP7 SDLK_KP_7 |
| #define SDLK_KP8 SDLK_KP_8 |
| #define SDLK_KP9 SDLK_KP_9 |
| #define SDLK_NUMLOCK SDLK_NUMLOCKCLEAR |
| #define SDLK_SCROLLOCK SDLK_SCROLLLOCK |
| #define SDLK_PRINT SDLK_PRINTSCREEN |
| #define SDLK_LMETA SDLK_LGUI |
| #define SDLK_RMETA SDLK_RGUI |
| |
|
|
| |
| |
| |
| |
| |
| |
| #define KMOD_LMETA KMOD_LGUI |
| #define KMOD_RMETA KMOD_RGUI |
| #define KMOD_META KMOD_GUI |
| |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| #define SDLK_LSUPER SDLK_LMETA |
| #define SDLK_RSUPER SDLK_RMETA |
| #define SDLK_COMPOSE SDLK_APPLICATION |
| #define SDLK_BREAK SDLK_STOP |
| #define SDLK_EURO SDLK_2 |
| |
|
|
| |
|
|
| #define SDL_SetModuleHandle(x) |
| #define SDL_AllocSurface SDL_CreateRGBSurface |
|
|
| extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version(void); |
| extern DECLSPEC const char *SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen); |
| extern DECLSPEC const char *SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen); |
| extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void); |
| extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width, |
| int height, |
| int bpp, Uint32 flags); |
| extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(const SDL_PixelFormat * |
| format, Uint32 flags); |
| extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode(int width, int height, |
| int bpp, Uint32 flags); |
| extern DECLSPEC SDL_Surface *SDLCALL SDL_GetVideoSurface(void); |
| extern DECLSPEC void SDLCALL SDL_UpdateRects(SDL_Surface * screen, |
| int numrects, SDL_Rect * rects); |
| extern DECLSPEC void SDLCALL SDL_UpdateRect(SDL_Surface * screen, |
| Sint32 x, |
| Sint32 y, Uint32 w, Uint32 h); |
| extern DECLSPEC int SDLCALL SDL_Flip(SDL_Surface * screen); |
| extern DECLSPEC int SDLCALL SDL_SetAlpha(SDL_Surface * surface, |
| Uint32 flag, Uint8 alpha); |
| extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormat(SDL_Surface * surface); |
| extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormatAlpha(SDL_Surface * |
| surface); |
| extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title, |
| const char *icon); |
| extern DECLSPEC void SDLCALL SDL_WM_GetCaption(const char **title, |
| const char **icon); |
| extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface * icon, Uint8 * mask); |
| extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow(void); |
| extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen(SDL_Surface * surface); |
| extern DECLSPEC SDL_GrabMode SDLCALL SDL_WM_GrabInput(SDL_GrabMode mode); |
| extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface * surface, |
| int flags, |
| const SDL_Color * colors, |
| int firstcolor, int ncolors); |
| extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface * surface, |
| const SDL_Color * colors, |
| int firstcolor, int ncolors); |
| extern DECLSPEC int SDLCALL SDL_GetWMInfo(struct SDL_SysWMinfo *info); |
| extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void); |
| extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, Uint16 y); |
| extern DECLSPEC SDL_Overlay *SDLCALL SDL_CreateYUVOverlay(int width, |
| int height, |
| Uint32 format, |
| SDL_Surface * |
| display); |
| extern DECLSPEC int SDLCALL SDL_LockYUVOverlay(SDL_Overlay * overlay); |
| extern DECLSPEC void SDLCALL SDL_UnlockYUVOverlay(SDL_Overlay * overlay); |
| extern DECLSPEC int SDLCALL SDL_DisplayYUVOverlay(SDL_Overlay * overlay, |
| SDL_Rect * dstrect); |
| extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay * overlay); |
| extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void); |
| extern DECLSPEC int SDLCALL SDL_SetGamma(float red, float green, float blue); |
| extern DECLSPEC int SDLCALL SDL_SetGammaRamp(const Uint16 * red, |
| const Uint16 * green, |
| const Uint16 * blue); |
| extern DECLSPEC int SDLCALL SDL_GetGammaRamp(Uint16 * red, Uint16 * green, |
| Uint16 * blue); |
| extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval); |
| extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval); |
| extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable); |
|
|
| typedef SDL_Window* SDL_WindowID; |
|
|
| #define SDL_KillThread(X) |
|
|
| |
| #define SDL_TIMESLICE 10 |
| #define TIMER_RESOLUTION 10 |
|
|
| typedef Uint32 (SDLCALL * SDL_OldTimerCallback) (Uint32 interval); |
| extern DECLSPEC int SDLCALL SDL_SetTimer(Uint32 interval, SDL_OldTimerCallback callback); |
|
|
| extern DECLSPEC int SDLCALL SDL_putenv(const char *variable); |
|
|
| |
|
|
| |
| #ifdef __cplusplus |
| |
| } |
| |
| #endif |
| #include "close_code.h" |
|
|
| #endif |
|
|
| |
|
|