Ignore:
Timestamp:
08/26/14 15:44:32 (11 years ago)
Author:
epyon
Message:
  • removed legacy SDL 1.2 support - no reason to support it anymore
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/lib/detail/sdl_functions.inc

    r171 r325  
    103103NV_SDL_FUN( int, SDL_GL_GetAttribute, (SDL_GLattr attr, int* value) );
    104104
     105/* SDL_video.h defines */
     106NV_SDL_FUN( int , SDL_GetNumVideoDrivers, (void) );
     107NV_SDL_FUN( const char *, SDL_GetVideoDriver, (int index) );
     108NV_SDL_FUN( int , SDL_VideoInit, (const char *driver_name) );
     109NV_SDL_FUN( void , SDL_VideoQuit, (void) );
     110NV_SDL_FUN( const char *, SDL_GetCurrentVideoDriver, (void) );
     111NV_SDL_FUN( int , SDL_GetNumVideoDisplays, (void) );
     112NV_SDL_FUN( const char * , SDL_GetDisplayName, (int displayIndex) );
     113NV_SDL_FUN( int , SDL_GetDisplayBounds, (int displayIndex, SDL_Rect * rect) );
     114NV_SDL_FUN( int , SDL_GetNumDisplayModes, (int displayIndex) );
     115NV_SDL_FUN( int , SDL_GetDisplayMode, (int displayIndex, int modeIndex,SDL_DisplayMode * mode) );
     116NV_SDL_FUN( int , SDL_GetDesktopDisplayMode, (int displayIndex, SDL_DisplayMode * mode) );
     117NV_SDL_FUN( int , SDL_GetCurrentDisplayMode, (int displayIndex, SDL_DisplayMode * mode) );
     118NV_SDL_FUN( SDL_DisplayMode * , SDL_GetClosestDisplayMode, (int displayIndex, const SDL_DisplayMode * mode, SDL_DisplayMode * closest) );
     119NV_SDL_FUN( int , SDL_GetWindowDisplayIndex, (SDL_Window * window) );
     120NV_SDL_FUN( int , SDL_SetWindowDisplayMode, (SDL_Window * window,const SDL_DisplayMode* mode) );
     121NV_SDL_FUN( int , SDL_GetWindowDisplayMode, (SDL_Window * window,SDL_DisplayMode * mode) );
     122NV_SDL_FUN( Uint32 , SDL_GetWindowPixelFormat, (SDL_Window * window) );
     123NV_SDL_FUN( SDL_Window * , SDL_CreateWindow, (const char *title,int x, int y, int w,int h, Uint32 flags) );
     124NV_SDL_FUN( SDL_Window * , SDL_CreateWindowFrom, (const void *data) );
     125NV_SDL_FUN( Uint32 , SDL_GetWindowID, (SDL_Window * window) );
     126NV_SDL_FUN( SDL_Window * , SDL_GetWindowFromID, (Uint32 id) );
     127NV_SDL_FUN( Uint32 , SDL_GetWindowFlags, (SDL_Window * window) );
     128NV_SDL_FUN( void , SDL_SetWindowTitle, (SDL_Window * window,const char *title) );
     129NV_SDL_FUN( const char *, SDL_GetWindowTitle, (SDL_Window * window) );
     130NV_SDL_FUN( void , SDL_SetWindowIcon, (SDL_Window * window,SDL_Surface * icon) );
     131NV_SDL_FUN( void* , SDL_SetWindowData, (SDL_Window * window,const char *name,void *userdata) );
     132NV_SDL_FUN( void *, SDL_GetWindowData, (SDL_Window * window,const char *name) );
     133NV_SDL_FUN( void , SDL_SetWindowPosition, (SDL_Window * window,int x, int y) );
     134NV_SDL_FUN( void , SDL_GetWindowPosition, (SDL_Window * window,int *x, int *y) );
     135NV_SDL_FUN( void , SDL_SetWindowSize, (SDL_Window * window, int w,int h) );
     136NV_SDL_FUN( void , SDL_GetWindowSize, (SDL_Window * window, int *w,int *h) );
     137NV_SDL_FUN( void , SDL_SetWindowMinimumSize, (SDL_Window * window,int min_w, int min_h) );
     138NV_SDL_FUN( void , SDL_GetWindowMinimumSize, (SDL_Window * window,int *w, int *h) );
     139NV_SDL_FUN( void , SDL_SetWindowMaximumSize, (SDL_Window * window,int max_w, int max_h) );
     140NV_SDL_FUN( void , SDL_GetWindowMaximumSize, (SDL_Window * window,int *w, int *h) );
     141NV_SDL_FUN( void , SDL_SetWindowBordered, (SDL_Window * window,SDL_bool bordered) );
     142NV_SDL_FUN( void , SDL_ShowWindow, (SDL_Window * window) );
     143NV_SDL_FUN( void , SDL_HideWindow, (SDL_Window * window) );
     144NV_SDL_FUN( void , SDL_RaiseWindow, (SDL_Window * window) );
     145NV_SDL_FUN( void , SDL_MaximizeWindow, (SDL_Window * window) );
     146NV_SDL_FUN( void , SDL_MinimizeWindow, (SDL_Window * window) );
     147NV_SDL_FUN( void , SDL_RestoreWindow, (SDL_Window * window) );
     148NV_SDL_FUN( int , SDL_SetWindowFullscreen, (SDL_Window * window,Uint32 flags) );
     149NV_SDL_FUN( SDL_Surface * , SDL_GetWindowSurface, (SDL_Window * window) );
     150NV_SDL_FUN( int , SDL_UpdateWindowSurface, (SDL_Window * window) );
     151NV_SDL_FUN( int , SDL_UpdateWindowSurfaceRects, (SDL_Window * window,const SDL_Rect * rects,int numrects) );
     152NV_SDL_FUN( void , SDL_SetWindowGrab, (SDL_Window * window,SDL_bool grabbed) );
     153NV_SDL_FUN( SDL_bool , SDL_GetWindowGrab, (SDL_Window * window) );
     154NV_SDL_FUN( int , SDL_SetWindowBrightness, (SDL_Window * window, float brightness) );
     155NV_SDL_FUN( float , SDL_GetWindowBrightness, (SDL_Window * window) );
     156NV_SDL_FUN( int , SDL_SetWindowGammaRamp, (SDL_Window * window,const Uint16 * red,const Uint16 * green,const Uint16 * blue) );
     157NV_SDL_FUN( int , SDL_GetWindowGammaRamp, (SDL_Window * window,Uint16 * red,Uint16 * green,Uint16 * blue) );
     158NV_SDL_FUN( void , SDL_DestroyWindow, (SDL_Window * window) );
     159NV_SDL_FUN( SDL_bool , SDL_IsScreenSaverEnabled, (void) );
     160NV_SDL_FUN( void , SDL_EnableScreenSaver, (void) );
     161NV_SDL_FUN( void , SDL_DisableScreenSaver, (void) );
     162NV_SDL_FUN( void , SDL_GL_UnloadLibrary, (void) );
     163NV_SDL_FUN( SDL_bool , SDL_GL_ExtensionSupported, (const char*extension) );
     164NV_SDL_FUN( SDL_GLContext , SDL_GL_CreateContext, (SDL_Window *window) );
     165NV_SDL_FUN( int , SDL_GL_MakeCurrent, (SDL_Window * window,SDL_GLContext context) );
     166NV_SDL_FUN( SDL_Window* , SDL_GL_GetCurrentWindow, (void) );
     167NV_SDL_FUN( SDL_GLContext , SDL_GL_GetCurrentContext, (void) );
     168NV_SDL_FUN( int , SDL_GL_SetSwapInterval, (int interval) );
     169NV_SDL_FUN( int , SDL_GL_GetSwapInterval, (void) );
     170NV_SDL_FUN( void , SDL_GL_SwapWindow, (SDL_Window * window) );
     171NV_SDL_FUN( void , SDL_GL_DeleteContext, (SDL_GLContext context) );
     172
     173/* SDL_audio.h functions */
     174NV_SDL_FUN( int , SDL_GetNumAudioDrivers, (void) );
     175NV_SDL_FUN( const char *, SDL_GetAudioDriver, (int index) );
     176NV_SDL_FUN( const char *, SDL_GetCurrentAudioDriver, (void) );
     177NV_SDL_FUN( int , SDL_GetNumAudioDevices, (int iscapture) );
     178NV_SDL_FUN( const char *, SDL_GetAudioDeviceName, (int index, int iscapture) );
     179NV_SDL_FUN( SDL_AudioDeviceID , SDL_OpenAudioDevice, (const char *device, int iscapture, const SDL_AudioSpec * desired, SDL_AudioSpec * obtained, int allowed_changes) );
     180NV_SDL_FUN( SDL_AudioStatus , SDL_GetAudioDeviceStatus, (SDL_AudioDeviceID dev) );
     181NV_SDL_FUN( void , SDL_PauseAudioDevice, (SDL_AudioDeviceID dev, int pause_on) );
     182NV_SDL_FUN( void , SDL_MixAudioFormat, (Uint8 * dst, const Uint8 * src, SDL_AudioFormat format, Uint32 len, int volume) );
     183NV_SDL_FUN( void , SDL_LockAudioDevice, (SDL_AudioDeviceID dev) );
     184NV_SDL_FUN( void , SDL_UnlockAudioDevice, (SDL_AudioDeviceID dev) );
     185NV_SDL_FUN( void , SDL_CloseAudioDevice, (SDL_AudioDeviceID dev) );
     186// NV_SDL_FUN( int , SDL_AudioDeviceConnected, (SDL_AudioDeviceID dev) );
     187
     188/* SDL_cpuinfo.h functions */
     189NV_SDL_FUN( int , SDL_GetCPUCount, (void) );
     190NV_SDL_FUN( int , SDL_GetCPUCacheLineSize, (void) );
     191NV_SDL_FUN( SDL_bool, SDL_HasSSE3, (void) );
     192NV_SDL_FUN( SDL_bool, SDL_HasSSE41, (void) );
     193NV_SDL_FUN( SDL_bool, SDL_HasSSE42, (void) );
     194
     195/* SDL_error.h functions */
     196NV_SDL_FUN( int, SDL_SetError, (const char *fmt, ...) );
     197NV_SDL_FUN( int, SDL_Error, (SDL_errorcode code) );
     198
     199/* SDL_keyboard.h functions */
     200NV_SDL_FUN( SDL_Window * , SDL_GetKeyboardFocus, (void) );
     201NV_SDL_FUN( const Uint8 *, SDL_GetKeyboardState, (int *numkeys) );
     202NV_SDL_FUN( SDL_Keymod , SDL_GetModState, (void) );
     203NV_SDL_FUN( void , SDL_SetModState, (SDL_Keymod modstate) );
     204NV_SDL_FUN( SDL_Keycode , SDL_GetKeyFromScancode, (SDL_Scancode scancode) );
     205NV_SDL_FUN( SDL_Scancode , SDL_GetScancodeFromKey, (SDL_Keycode key) );
     206NV_SDL_FUN( const char *, SDL_GetScancodeName, (SDL_Scancode scancode) );
     207NV_SDL_FUN( SDL_Scancode , SDL_GetScancodeFromName, (const char *name) );
     208NV_SDL_FUN( const char *, SDL_GetKeyName, (SDL_Keycode key) );
     209NV_SDL_FUN( SDL_Keycode , SDL_GetKeyFromName, (const char *name) );
     210NV_SDL_FUN( void , SDL_StartTextInput, (void) );
     211NV_SDL_FUN( SDL_bool , SDL_IsTextInputActive, (void) );
     212NV_SDL_FUN( void , SDL_StopTextInput, (void) );
     213NV_SDL_FUN( void , SDL_SetTextInputRect, (SDL_Rect *rect) );
     214NV_SDL_FUN( SDL_bool , SDL_HasScreenKeyboardSupport, (void) );
     215NV_SDL_FUN( SDL_bool , SDL_IsScreenKeyboardShown, (SDL_Window *window) );
     216
     217/* SDL_mouse.h functions */
     218NV_SDL_FUN( SDL_Window * , SDL_GetMouseFocus, (void) );
     219NV_SDL_FUN( Uint32 , SDL_GetMouseState, (int *x, int *y) );
     220NV_SDL_FUN( Uint32 , SDL_GetRelativeMouseState, (int *x, int *y) );
     221NV_SDL_FUN( void , SDL_WarpMouseInWindow, (SDL_Window * window,int x, int y) );
     222NV_SDL_FUN( int , SDL_SetRelativeMouseMode, (SDL_bool enabled) );
     223NV_SDL_FUN( SDL_bool , SDL_GetRelativeMouseMode, (void) );
     224NV_SDL_FUN( SDL_Cursor *, SDL_CreateCursor, (const Uint8 * data,const Uint8 * mask,int w, int h, int hot_x,int hot_y) );
     225NV_SDL_FUN( SDL_Cursor *, SDL_CreateColorCursor, (SDL_Surface *surface,int hot_x,int hot_y) );
     226NV_SDL_FUN( SDL_Cursor *, SDL_CreateSystemCursor, (SDL_SystemCursor id) );
     227NV_SDL_FUN( SDL_Cursor *, SDL_GetDefaultCursor, (void) );
     228
     229NV_SDL_FUN( const char *, SDL_JoystickName, (SDL_Joystick * joystick) );
     230NV_SDL_FUN( const char *, SDL_JoystickNameForIndex, (int device_index) );
     231NV_SDL_FUN( SDL_JoystickGUID , SDL_JoystickGetDeviceGUID, (int device_index) );
     232NV_SDL_FUN( SDL_JoystickGUID , SDL_JoystickGetGUID, (SDL_Joystick * joystick) );
     233NV_SDL_FUN( void, SDL_JoystickGetGUIDString, (SDL_JoystickGUID guid, char *pszGUID, int cbGUID) );
     234NV_SDL_FUN( SDL_JoystickGUID , SDL_JoystickGetGUIDFromString, (const char *pchGUID) );
     235NV_SDL_FUN( SDL_bool , SDL_JoystickGetAttached, (SDL_Joystick * joystick) );
     236NV_SDL_FUN( SDL_JoystickID , SDL_JoystickInstanceID, (SDL_Joystick * joystick) );
     237
     238NV_SDL_FUN( Uint64 , SDL_GetPerformanceCounter, (void) );
     239NV_SDL_FUN( Uint64 , SDL_GetPerformanceFrequency, (void) );
     240
     241/* SDL_version.h functions */
     242NV_SDL_FUN( void , SDL_GetVersion, (SDL_version * ver) );
     243NV_SDL_FUN( const char *, SDL_GetRevision, (void) );
     244NV_SDL_FUN( int , SDL_GetRevisionNumber, (void) );
     245
     246/* SDL_event.h functions */
     247NV_SDL_FUN( int , SDL_PeepEvents, (SDL_Event * events, int numevents,SDL_eventaction action,Uint32 minType, Uint32 maxType) );
     248NV_SDL_FUN( SDL_bool , SDL_HasEvent, (Uint32 type) );
     249NV_SDL_FUN( SDL_bool , SDL_HasEvents, (Uint32 minType, Uint32 maxType) );
     250NV_SDL_FUN( void , SDL_FlushEvent, (Uint32 type) );
     251NV_SDL_FUN( void , SDL_FlushEvents, (Uint32 minType, Uint32 maxType) );
     252NV_SDL_FUN( int , SDL_WaitEventTimeout, (SDL_Event * event,int timeout) );
     253NV_SDL_FUN( void , SDL_SetEventFilter, (SDL_EventFilter filter,void *userdata) );
     254NV_SDL_FUN( SDL_bool , SDL_GetEventFilter, (SDL_EventFilter * filter,void **userdata) );
     255NV_SDL_FUN( void , SDL_AddEventWatch, (SDL_EventFilter filter,void *userdata) );
     256NV_SDL_FUN( void , SDL_DelEventWatch, (SDL_EventFilter filter,void *userdata) );
     257NV_SDL_FUN( void , SDL_FilterEvents, (SDL_EventFilter filter,void *userdata) );
     258NV_SDL_FUN( Uint8 , SDL_EventState, (Uint32 type, int state) );
     259NV_SDL_FUN( Uint32 , SDL_RegisterEvents, (int numevents) );
     260
     261/* SDL_clipboard.h functions */
     262NV_SDL_FUN( int, SDL_SetClipboardText, (const char *text) );
     263NV_SDL_FUN( char *, SDL_GetClipboardText, (void) );
     264NV_SDL_FUN( SDL_bool, SDL_HasClipboardText, (void) );
     265
     266/* SDL_gamecontroller.h functions */
     267NV_SDL_FUN( int , SDL_GameControllerAddMapping, ( const char* mappingString ) );
     268NV_SDL_FUN( char * , SDL_GameControllerMappingForGUID, ( SDL_JoystickGUID guid ) );
     269NV_SDL_FUN( char * , SDL_GameControllerMapping, ( SDL_GameController * gamecontroller ) );
     270NV_SDL_FUN( SDL_bool , SDL_IsGameController, (int joystick_index) );
     271NV_SDL_FUN( const char *, SDL_GameControllerNameForIndex, (int joystick_index) );
     272NV_SDL_FUN( SDL_GameController *, SDL_GameControllerOpen, (int joystick_index) );
     273NV_SDL_FUN( const char *, SDL_GameControllerName, (SDL_GameController *gamecontroller) );
     274NV_SDL_FUN( SDL_bool , SDL_GameControllerGetAttached, (SDL_GameController *gamecontroller) );
     275NV_SDL_FUN( SDL_Joystick *, SDL_GameControllerGetJoystick, (SDL_GameController *gamecontroller) );
     276NV_SDL_FUN( int , SDL_GameControllerEventState, (int state) );
     277NV_SDL_FUN( void , SDL_GameControllerUpdate, (void) );
     278NV_SDL_FUN( SDL_GameControllerAxis , SDL_GameControllerGetAxisFromString, (const char *pchString) );
     279NV_SDL_FUN( const char* , SDL_GameControllerGetStringForAxis, (SDL_GameControllerAxis axis) );
     280NV_SDL_FUN( SDL_GameControllerButtonBind , SDL_GameControllerGetBindForAxis, (SDL_GameController *gamecontroller,SDL_GameControllerAxis axis) );
     281NV_SDL_FUN( Sint16 , SDL_GameControllerGetAxis, (SDL_GameController *gamecontroller,SDL_GameControllerAxis axis) );
     282NV_SDL_FUN( SDL_GameControllerButton , SDL_GameControllerGetButtonFromString, (const char *pchString) );
     283NV_SDL_FUN( const char* , SDL_GameControllerGetStringForButton, (SDL_GameControllerButton button) );
     284NV_SDL_FUN( SDL_GameControllerButtonBind , SDL_GameControllerGetBindForButton, (SDL_GameController *gamecontroller,SDL_GameControllerButton button) );
     285NV_SDL_FUN( Uint8 , SDL_GameControllerGetButton, (SDL_GameController *gamecontroller,SDL_GameControllerButton button) );
     286NV_SDL_FUN( void , SDL_GameControllerClose, (SDL_GameController *gamecontroller) );
     287
     288/* SDL_hints.h functions */
     289NV_SDL_FUN( SDL_bool , SDL_SetHintWithPriority, (const char *name,const char *value,SDL_HintPriority priority) );
     290NV_SDL_FUN( SDL_bool , SDL_SetHint, (const char *name,const char *value) );
     291NV_SDL_FUN( const char * , SDL_GetHint, (const char *name) );
     292NV_SDL_FUN( void , SDL_ClearHints, (void) );
     293
     294/* SDL_main.h functions */
     295NV_SDL_FUN( void , SDL_SetMainReady, (void) );
     296// NV_SDL_FUN( int , SDL_RegisterApp, (char *name, Uint32 style,void *hInst) );
     297// NV_SDL_FUN( void , SDL_UnregisterApp, (void) );
     298
     299/* SDL_messagebox.h functions */
     300NV_SDL_FUN( int , SDL_ShowMessageBox, (const SDL_MessageBoxData *messageboxdata, int *buttonid) );
     301NV_SDL_FUN( int , SDL_ShowSimpleMessageBox, (Uint32 flags, const char *title, const char *message, SDL_Window *window) );
     302
     303/* SDL_pixels.h functions */
     304NV_SDL_FUN( const char* , SDL_GetPixelFormatName, (Uint32 format) );
     305NV_SDL_FUN( SDL_bool , SDL_PixelFormatEnumToMasks, (Uint32 format,int *bpp,Uint32 * Rmask,Uint32 * Gmask,Uint32 * Bmask,Uint32 * Amask) );
     306NV_SDL_FUN( Uint32 , SDL_MasksToPixelFormatEnum, (int bpp,Uint32 Rmask,Uint32 Gmask,Uint32 Bmask,Uint32 Amask) );
     307NV_SDL_FUN( SDL_PixelFormat * , SDL_AllocFormat, (Uint32 pixel_format) );
     308NV_SDL_FUN( void , SDL_FreeFormat, (SDL_PixelFormat *format) );
     309NV_SDL_FUN( SDL_Palette *, SDL_AllocPalette, (int ncolors) );
     310NV_SDL_FUN( int , SDL_SetPixelFormatPalette, (SDL_PixelFormat * format,SDL_Palette *palette) );
     311NV_SDL_FUN( int , SDL_SetPaletteColors, (SDL_Palette * palette,const SDL_Color * colors,int firstcolor, int ncolors) );
     312NV_SDL_FUN( void , SDL_FreePalette, (SDL_Palette * palette) );
     313NV_SDL_FUN( Uint32 , SDL_MapRGB, (const SDL_PixelFormat * format,Uint8 r, Uint8 g, Uint8 b) );
     314NV_SDL_FUN( Uint32 , SDL_MapRGBA, (const SDL_PixelFormat * format,Uint8 r, Uint8 g, Uint8 b,Uint8 a) );
     315NV_SDL_FUN( void , SDL_GetRGB, (Uint32 pixel,const SDL_PixelFormat * format,Uint8 * r, Uint8 * g, Uint8 * b) );
     316NV_SDL_FUN( void , SDL_GetRGBA, (Uint32 pixel,const SDL_PixelFormat * format,Uint8 * r, Uint8 * g, Uint8 * b,Uint8 * a) );
     317NV_SDL_FUN( void , SDL_CalculateGammaRamp, (float gamma, Uint16 * ramp) ); 
     318
     319/* SDL_platform.h functions */
     320NV_SDL_FUN( const char * , SDL_GetPlatform , (void) );
     321
     322/* SDL_power.h functions */
     323NV_SDL_FUN( SDL_PowerState , SDL_GetPowerInfo, (int *secs, int *pct) );
     324
     325/* SDL_renderer.h functions */
     326NV_SDL_FUN( int , SDL_GetNumRenderDrivers, (void) );
     327NV_SDL_FUN( int , SDL_GetRenderDriverInfo, (int index,SDL_RendererInfo * info) );
     328NV_SDL_FUN( int , SDL_CreateWindowAndRenderer, (int width, int height, Uint32 window_flags,SDL_Window **window, SDL_Renderer **renderer) );
     329NV_SDL_FUN( SDL_Renderer * , SDL_CreateRenderer, (SDL_Window * window,int index, Uint32 flags) );
     330NV_SDL_FUN( SDL_Renderer * , SDL_CreateSoftwareRenderer, (SDL_Surface * surface) );
     331NV_SDL_FUN( SDL_Renderer * , SDL_GetRenderer, (SDL_Window * window) );
     332NV_SDL_FUN( int , SDL_GetRendererInfo, (SDL_Renderer * renderer,SDL_RendererInfo * info) );
     333NV_SDL_FUN( int , SDL_GetRendererOutputSize, (SDL_Renderer * renderer,int *w, int *h) );
     334NV_SDL_FUN( SDL_Texture * , SDL_CreateTexture, (SDL_Renderer * renderer,Uint32 format,int access, int w,int h) );
     335NV_SDL_FUN( SDL_Texture * , SDL_CreateTextureFromSurface, (SDL_Renderer * renderer, SDL_Surface * surface) );
     336NV_SDL_FUN( int , SDL_QueryTexture, (SDL_Texture * texture,Uint32 * format, int *access,int *w, int *h) );
     337NV_SDL_FUN( int , SDL_SetTextureColorMod, (SDL_Texture * texture,Uint8 r, Uint8 g, Uint8 b) );
     338NV_SDL_FUN( int , SDL_GetTextureColorMod, (SDL_Texture * texture,Uint8 * r, Uint8 * g,Uint8 * b) );
     339NV_SDL_FUN( int , SDL_SetTextureAlphaMod, (SDL_Texture * texture,Uint8 alpha) );
     340NV_SDL_FUN( int , SDL_GetTextureAlphaMod, (SDL_Texture * texture,Uint8 * alpha) );
     341NV_SDL_FUN( int , SDL_SetTextureBlendMode, (SDL_Texture * texture,SDL_BlendMode blendMode) );
     342NV_SDL_FUN( int , SDL_GetTextureBlendMode, (SDL_Texture * texture,SDL_BlendMode *blendMode) );
     343NV_SDL_FUN( int , SDL_UpdateTexture, (SDL_Texture * texture,const SDL_Rect * rect,const void *pixels, int pitch) );
     344NV_SDL_FUN( int , SDL_LockTexture, (SDL_Texture * texture,const SDL_Rect * rect,void **pixels, int *pitch) );
     345NV_SDL_FUN( void , SDL_UnlockTexture, (SDL_Texture * texture) );
     346NV_SDL_FUN( SDL_bool , SDL_RenderTargetSupported, (SDL_Renderer *renderer) );
     347NV_SDL_FUN( int , SDL_SetRenderTarget, (SDL_Renderer *renderer,SDL_Texture *texture) );
     348NV_SDL_FUN( SDL_Texture * , SDL_GetRenderTarget, (SDL_Renderer *renderer) );
     349NV_SDL_FUN( int , SDL_RenderSetLogicalSize, (SDL_Renderer * renderer, int w, int h) );
     350NV_SDL_FUN( void , SDL_RenderGetLogicalSize, (SDL_Renderer * renderer, int *w, int *h) );
     351NV_SDL_FUN( int , SDL_RenderSetViewport, (SDL_Renderer * renderer,const SDL_Rect * rect) );
     352NV_SDL_FUN( void , SDL_RenderGetViewport, (SDL_Renderer * renderer,SDL_Rect * rect) );
     353NV_SDL_FUN( int , SDL_RenderSetClipRect, (SDL_Renderer * renderer,const SDL_Rect * rect) );
     354NV_SDL_FUN( void , SDL_RenderGetClipRect, (SDL_Renderer * renderer,SDL_Rect * rect) );
     355NV_SDL_FUN( int , SDL_RenderSetScale, (SDL_Renderer * renderer,float scaleX, float scaleY) );
     356NV_SDL_FUN( void , SDL_RenderGetScale, (SDL_Renderer * renderer,float *scaleX, float *scaleY) );
     357NV_SDL_FUN( int , SDL_SetRenderDrawColor, (SDL_Renderer * renderer,Uint8 r, Uint8 g, Uint8 b,Uint8 a) );
     358NV_SDL_FUN( int , SDL_GetRenderDrawColor, (SDL_Renderer * renderer,Uint8 * r, Uint8 * g, Uint8 * b,Uint8 * a) );
     359NV_SDL_FUN( int , SDL_SetRenderDrawBlendMode, (SDL_Renderer * renderer,SDL_BlendMode blendMode) );
     360NV_SDL_FUN( int , SDL_GetRenderDrawBlendMode, (SDL_Renderer * renderer,SDL_BlendMode *blendMode) );
     361NV_SDL_FUN( int , SDL_RenderClear, (SDL_Renderer * renderer) );
     362NV_SDL_FUN( int , SDL_RenderDrawPoint, (SDL_Renderer * renderer,int x, int y) );
     363NV_SDL_FUN( int , SDL_RenderDrawPoints, (SDL_Renderer * renderer,const SDL_Point * points,int count) );
     364NV_SDL_FUN( int , SDL_RenderDrawLine, (SDL_Renderer * renderer,int x1, int y1, int x2, int y2) );
     365NV_SDL_FUN( int , SDL_RenderDrawLines, (SDL_Renderer * renderer,const SDL_Point * points,int count) );
     366NV_SDL_FUN( int , SDL_RenderDrawRect, (SDL_Renderer * renderer,const SDL_Rect * rect) );
     367NV_SDL_FUN( int , SDL_RenderDrawRects, (SDL_Renderer * renderer,const SDL_Rect * rects,int count) );
     368NV_SDL_FUN( int , SDL_RenderFillRect, (SDL_Renderer * renderer,const SDL_Rect * rect) );
     369NV_SDL_FUN( int , SDL_RenderFillRects, (SDL_Renderer * renderer,const SDL_Rect * rects,int count) );
     370NV_SDL_FUN( int , SDL_RenderCopy, (SDL_Renderer * renderer,SDL_Texture * texture,const SDL_Rect * srcrect,const SDL_Rect * dstrect) );
     371NV_SDL_FUN( int , SDL_RenderCopyEx, (SDL_Renderer * renderer,SDL_Texture * texture,const SDL_Rect * srcrect,const SDL_Rect * dstrect,const double angle,const SDL_Point *center,const SDL_RendererFlip flip) );
     372NV_SDL_FUN( int , SDL_RenderReadPixels, (SDL_Renderer * renderer,const SDL_Rect * rect,Uint32 format,void *pixels, int pitch) );
     373NV_SDL_FUN( void , SDL_RenderPresent, (SDL_Renderer * renderer) );
     374NV_SDL_FUN( void , SDL_DestroyTexture, (SDL_Texture * texture) );
     375NV_SDL_FUN( void , SDL_DestroyRenderer, (SDL_Renderer * renderer) );
     376NV_SDL_FUN( int , SDL_GL_BindTexture, (SDL_Texture *texture, float *texw, float *texh) );
     377NV_SDL_FUN( int , SDL_GL_UnbindTexture, (SDL_Texture *texture) );
     378
     379/* SDL_shape.h functions */
     380NV_SDL_FUN( int , SDL_SetWindowShape, (SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode *shape_mode) );
     381NV_SDL_FUN( int , SDL_GetShapedWindowMode, (SDL_Window *window,SDL_WindowShapeMode *shape_mode) );
     382
     383/* SDL_surface.h functions */
     384NV_SDL_FUN( int , SDL_SetSurfacePalette, (SDL_Surface * surface,SDL_Palette * palette) );
     385NV_SDL_FUN( int , SDL_SetSurfaceRLE, (SDL_Surface * surface,int flag) );
     386NV_SDL_FUN( int , SDL_SetColorKey, (SDL_Surface * surface,int flag, Uint32 key) );
     387NV_SDL_FUN( int , SDL_GetColorKey, (SDL_Surface * surface,Uint32 * key) );
     388NV_SDL_FUN( int , SDL_SetSurfaceColorMod, (SDL_Surface * surface,Uint8 r, Uint8 g, Uint8 b) );
     389NV_SDL_FUN( int , SDL_GetSurfaceColorMod, (SDL_Surface * surface,Uint8 * r, Uint8 * g,Uint8 * b) );
     390NV_SDL_FUN( int , SDL_SetSurfaceAlphaMod, (SDL_Surface * surface,Uint8 alpha) );
     391NV_SDL_FUN( int , SDL_GetSurfaceAlphaMod, (SDL_Surface * surface,Uint8 * alpha) );
     392NV_SDL_FUN( int , SDL_SetSurfaceBlendMode, (SDL_Surface * surface,SDL_BlendMode blendMode) );
     393NV_SDL_FUN( int , SDL_GetSurfaceBlendMode, (SDL_Surface * surface,SDL_BlendMode *blendMode) );
     394
     395NV_SDL_FUN( SDL_Surface *, SDL_ConvertSurfaceFormat, (SDL_Surface * src, Uint32 pixel_format, Uint32 flags) );
     396NV_SDL_FUN( int , SDL_ConvertPixels, (int width, int height,Uint32 src_format,const void * src, int src_pitch,Uint32 dst_format,void * dst, int dst_pitch) );
     397NV_SDL_FUN( int , SDL_FillRect, (SDL_Surface * dst, const SDL_Rect * rect, Uint32 color) );
     398NV_SDL_FUN( int , SDL_FillRects, (SDL_Surface * dst, const SDL_Rect * rects, int count, Uint32 color) );
     399NV_SDL_FUN( int , SDL_UpperBlit, (SDL_Surface * src, const SDL_Rect * srcrect,SDL_Surface * dst, SDL_Rect * dstrect) );
     400NV_SDL_FUN( int , SDL_LowerBlit, (SDL_Surface * src, SDL_Rect * srcrect,SDL_Surface * dst, SDL_Rect * dstrect) );
     401NV_SDL_FUN( int , SDL_SoftStretch, (SDL_Surface * src,const SDL_Rect * srcrect,SDL_Surface * dst,const SDL_Rect * dstrect) );
     402NV_SDL_FUN( int , SDL_UpperBlitScaled, (SDL_Surface * src, const SDL_Rect * srcrect,SDL_Surface * dst, SDL_Rect * dstrect) );
     403NV_SDL_FUN( int , SDL_LowerBlitScaled, (SDL_Surface * src, SDL_Rect * srcrect,SDL_Surface * dst, SDL_Rect * dstrect) );
     404NV_SDL_FUN( int , SDL_GetNumTouchDevices, (void) );
     405NV_SDL_FUN( SDL_TouchID , SDL_GetTouchDevice, (int index) );
     406NV_SDL_FUN( int , SDL_GetNumTouchFingers, (SDL_TouchID touchID) );
     407NV_SDL_FUN( SDL_Finger * , SDL_GetTouchFinger, (SDL_TouchID touchID, int index) );
     408
     409NV_SDL_FUN( char *, SDL_getenv, (const char *name) );
     410NV_SDL_FUN( int , SDL_setenv, (const char *name, const char *value, int overwrite) );
     411NV_SDL_FUN( int , SDL_isdigit, (int x) );
     412NV_SDL_FUN( int , SDL_isspace, (int x) );
     413NV_SDL_FUN( int , SDL_toupper, (int x) );
     414NV_SDL_FUN( int , SDL_tolower, (int x) );
Note: See TracChangeset for help on using the changeset viewer.