Buckets:
| /* | |
| Simple DirectMedia Layer | |
| Copyright (C) 1997-2011 Sam Lantinga <slouken@libsdl.org> | |
| This software is provided 'as-is', without any express or implied | |
| warranty. In no event will the authors be held liable for any damages | |
| arising from the use of this software. | |
| Permission is granted to anyone to use this software for any purpose, | |
| including commercial applications, and to alter it and redistribute it | |
| freely, subject to the following restrictions: | |
| 1. The origin of this software must not be misrepresented; you must not | |
| claim that you wrote the original software. If you use this software | |
| in a product, an acknowledgment in the product documentation would be | |
| appreciated but is not required. | |
| 2. Altered source versions must be plainly marked as such, and must not be | |
| misrepresented as being the original software. | |
| 3. This notice may not be removed or altered from any source distribution. | |
| */ | |
| /** | |
| * \defgroup Compatibility SDL 1.2 Compatibility API | |
| */ | |
| /*@{*/ | |
| /** | |
| * \file SDL_compat.h | |
| * | |
| * This file contains functions for backwards compatibility with SDL 1.2. | |
| */ | |
| /** | |
| * \def SDL_NO_COMPAT | |
| * | |
| * #define SDL_NO_COMPAT to prevent SDL_compat.h from being included. | |
| * SDL_NO_COMPAT is intended to make it easier to covert SDL 1.2 code to | |
| * SDL 1.3/2.0. | |
| */ | |
| /*@}*/ | |
| /* Set up for C function definitions, even when using C++ */ | |
| /* *INDENT-OFF* */ | |
| extern "C" { | |
| /* *INDENT-ON* */ | |
| /** | |
| * \addtogroup Compatibility | |
| */ | |
| /*@{*/ | |
| /* Platform */ | |
| /** | |
| * \name Surface flags | |
| */ | |
| /*@{*/ | |
| /*@}*//*Surface flags*/ | |
| 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; | |
| /** | |
| * \name Overlay formats | |
| * | |
| * The most common video overlay formats. | |
| * | |
| * For an explanation of these pixel formats, see: | |
| * http://www.webartz.com/fourcc/indexyuv.htm | |
| * | |
| * For information on the relationship between color spaces, see: | |
| * http://www.neuro.sfc.keio.ac.jp/~aly/polygon/info/color-space-faq.html | |
| */ | |
| /*@{*/ | |
| /*@}*//*Overlay formats*/ | |
| /** | |
| * The YUV hardware video overlay. | |
| */ | |
| typedef struct SDL_Overlay | |
| { | |
| Uint32 format; /**< Read-only */ | |
| int w, h; /**< Read-only */ | |
| int planes; /**< Read-only */ | |
| Uint16 *pitches; /**< Read-only */ | |
| Uint8 **pixels; /**< Read-write */ | |
| /** | |
| * \name Hardware-specific surface info | |
| */ | |
| /*@{*/ | |
| struct private_yuvhwfuncs *hwfuncs; | |
| struct private_yuvhwdata *hwdata; | |
| /*@}*//*Hardware-specific surface info*/ | |
| /** | |
| * \name Special flags | |
| */ | |
| /*@{*/ | |
| Uint32 hw_overlay:1; /**< Flag: This overlay hardware accelerated? */ | |
| Uint32 UnusedBits:31; | |
| /*@}*//*Special flags*/ | |
| } SDL_Overlay; | |
| typedef enum | |
| { | |
| SDL_GRAB_QUERY = -1, | |
| SDL_GRAB_OFF = 0, | |
| SDL_GRAB_ON = 1 | |
| } SDL_GrabMode; | |
| struct SDL_SysWMinfo; | |
| /** | |
| * \name Obsolete or renamed key codes | |
| */ | |
| /*@{*/ | |
| /** | |
| * \name Renamed keys | |
| * | |
| * These key constants were renamed for clarity or consistency. | |
| */ | |
| /*@{*/ | |
| /*@}*//*Renamed keys*/ | |
| /** | |
| * \name META modifier | |
| * | |
| * The META modifier is equivalent to the GUI modifier from the USB standard. | |
| */ | |
| /*@{*/ | |
| /*@}*//*META modifier*/ | |
| /** | |
| * \name Not in USB | |
| * | |
| * These keys don't appear in the USB specification (or at least not under | |
| * those names). I'm unsure if the following assignments make sense or if these | |
| * codes should be defined as actual additional SDLK_ constants. | |
| */ | |
| /*@{*/ | |
| /*@}*//*Not in USB*/ | |
| /*@}*//*Obsolete or renamed key codes*/ | |
| 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; | |
| /* The timeslice and timer resolution are no longer relevant */ | |
| 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); | |
| /*@}*//*Compatibility*/ | |
| /* Ends C function definitions when using C++ */ | |
| /* *INDENT-OFF* */ | |
| } | |
| /* *INDENT-ON* */ | |
| /* vi: set ts=4 sw=4 expandtab: */ | |
Xet Storage Details
- Size:
- 12.9 kB
- Xet hash:
- f7d69645e2ca7568dc65e3ad942be55df873cf11f180b5ddaf07ed5eb66421ca
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.