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