Commit graph

387 commits

Author SHA1 Message Date
Ethan Lee 12137a127b SDL2_gfx dllmap 2021-12-17 13:00:14 -05:00
Ethan Lee f62950eae7 SDL2_gfx tabbing/license cleanup 2021-12-17 13:00:01 -05:00
Refrag 0a8a135a34
SDL2_gfx library bindings (#230) 2021-12-17 12:57:53 -05:00
Caleb Cornett 298a725adb
Update for 2.0.18 (#229) 2021-11-30 12:27:41 -05:00
Jeremy Sayers 4e9088b49d Add Mix_GetError, Mix_SetError, Mix_ClearError
Adding `Mix_GetError`, `Mix_SetError`, `Mix_ClearError` as per the SDL_mixer header file:

/* We'll use SDL for reporting errors */
#define Mix_SetError    SDL_SetError
#define Mix_GetError    SDL_GetError
#define Mix_ClearError  SDL_ClearError
2021-11-14 12:51:37 -05:00
Jeremy Sayers db935863bb Add TTF_GetError and TTF_SetError
Adding some missing functions to SDL2_ttf that are just wrappers of the `SDL_GetError` and `SDL_SetError` as per the SDL_ttf header:
```
/* We'll use SDL for reporting errors */
#define TTF_SetError    SDL_SetError
#define TTF_GetError    SDL_GetError
```
2021-11-14 12:45:23 -05:00
s341507 ec5e8d8357 Fixed field type of ctouchpad and csensor in SDL_Event. 2021-11-03 10:09:07 -04:00
Caleb Cornett 5df88baf4b Add missing EntryPoint for SDL_AndroidShowToast 2021-11-02 15:20:30 -04:00
Esme 904eed3cb0 Fix typo in version comment 2021-08-16 14:35:27 -04:00
Mary 931d5fc06e Add multiple missing pointer overloads
THis adds some missing overloads that Ryujinx uses.

Changelog:
- Add a new overload of SDL_MixAudioFormat to allow passing raw pointers
  as dest and src (useful for usage with SDL_AudioSpec's callback).
- Add a new overload of SDL_OpenAudioDevice to allow passing null for
  the device parameter.
- Add a new overload of SDL_Vulkan_GetInstanceExtensions to allow
  passing null for the pName parameter.
2021-08-14 06:24:16 -04:00
Caleb Cornett 09716fcbc2 Update to 2.0.16 2021-08-10 15:49:29 -04:00
wanderer06 d5e1e56983 Add NULL overload to SDL_SetWindowDisplayMode 2021-08-04 16:58:59 -04:00
Ethan Lee b2ed029f11 Woops, an internal function was public 2021-07-13 16:46:43 -04:00
Ethan Lee 8c25be5b12 Free GameControllerMapping return values 2021-06-29 15:56:23 -04:00
Ethan Lee 00c94a24eb Allow Utf8EncodeHeap to return NULL, clean up Utf8Size 2021-05-15 09:58:00 -04:00
Ethan Lee e316ae5cfd Give the heap-allocated Utf8Encode a unique function name 2021-05-15 09:47:28 -04:00
Ethan Lee a234470e39
Make all UTF8 conversions nullable.
Trying to avoid null strings was far too invasive and kept creating bugs in the wrapper, and the wrapper should not have enough code to create bugs in the first place.
2021-05-15 09:10:02 -04:00
Ethan Lee fadd0135c3
Removed obsolete Roadmap section from README 2021-04-19 11:57:58 -04:00
Ethan Lee e8bf894c31
Try to fix use of C long in TTF_FontFaces 2021-04-19 11:54:43 -04:00
Mary 800ae50c84 Add some missing hints from 2.0.14 and minor correctness updates
This is based on my update to 2.0.14 I did based on ppy's fork.
Even if what I did in the end was duplicate compared to upstream, I found some differences and missing bits.

This commit is here to address those missing bits.
2021-03-29 16:06:26 -04:00
Ethan Lee 53026deb22 Fix some native memory leaks in the newer functions 2021-03-13 16:13:27 -05:00
Ethan Lee 2b8d237fd4 Support SDL2-CS.Settings.props for both project types 2021-03-01 09:20:52 -05:00
deccer f636c6175d
Add support for SDL2-CS.Settings.props, for custom build options. (#214)
Based on FNA.Settings.props.
2021-02-15 09:30:49 -05:00
Ethan Lee 22301b61f4 Fix SDL_LoadFile signature 2021-02-03 11:00:31 -05:00
ameliadiedrich 21ec9cecad Added SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR Hint 2021-01-27 10:34:02 -05:00
Ethan Lee 1e01bc8eeb Happy New Year! 2021-01-01 11:32:54 -05:00
Ethan Lee 332667f37b
Fix return type for GameControllerGetSensorData 2020-12-22 02:01:34 -05:00
Caleb Cornett 4eab64f274
Updates for SDL 2.0.14 (#210) 2020-12-21 23:55:22 -05:00
Ethan Lee 0287457930 Fix my terrible LoadWAV signature 2020-11-15 10:46:01 -05:00
Jeremy Sayers 5966578e82 Added IMG_GetError and IMG_SetError wrapping calls to SDL_GetError and SDL_SetError to keep SDL2_image.cs consistent with SDL2_image.h 2020-10-29 09:07:30 -04:00
Chad Yates e95ef4e98a Fix buffer overflow. 2020-06-23 05:41:44 -04:00
Caleb Cornett b253a810e0 Add padding to SDL_Event 2020-06-12 23:00:32 -04:00
Caleb Cornett f4d713f651 ExternalStorageState -> ExternalStoragePath 2020-06-12 16:46:39 -04:00
Ethan Lee a31694d145 F# keyword fix 2020-06-08 09:59:03 -04:00
Ethan Lee 3e7eaf9d5b Added checks for null UTF8 inputs 2020-05-28 10:40:21 -04:00
Ethan Lee c782115e7f Minor style fixes, UTF8 update for mixer/ttf 2020-05-21 10:24:46 -04:00
Chad Yates 040d39b4a5
Avoid string and byte[] allocation when converting to UTF8 native string (#192) 2020-05-21 10:00:19 -04:00
Caleb Cornett 8d0760016b
SDL 2.0.12 Update (#167)
* Add SDL_Metal APIs
* Added LockTextureToSurface functions
* Add SDL_HasARMSIMD and SDL_GameControllerType enum/functions
* Updated enum names, added missing macros, added new hints
* Added Get/SetPlayerIndex functions
* Standardize comment format
* Added SDL_Get/SetTextureScaleMode
* TTF updates
* Added IMG_Animation API to SDL_image
* SDL_mixer updates
* Add SDL_BLENDMODE_MUL
* Added hints and SDL_GetAndroidSDKVersion
2020-03-10 16:41:58 -04:00
Todd York 11064cc128 Add SDL_SysWMinfo.info.win.hinstance 2020-03-10 09:57:44 -04:00
Ethan Lee e7d628f539 Allow .NET 4.0 projects to reference SDL2-CS.Core 2020-02-29 11:15:45 -05:00
Ethan Lee 6cb034a649 Expose SDL_memcpy 2020-01-19 10:57:16 -05:00
Ethan Lee 6a28ae8594 Fix SDL_AndroidGetExternalStorageState EntryPoint 2020-01-08 12:46:35 -05:00
Ethan Lee 8aa635b27f Happy New Year! 2020-01-01 11:08:04 -05:00
Caleb Cornett c6524e2eb4 Missed a few things from previous releases 2019-12-14 20:25:52 -04:00
meli 1a3556441e Fix leak in SDL_GetClipboardText() 2019-12-06 22:20:57 -05:00
Ethan Lee 1f35c7f2fd VS2010 app.config fix 2019-11-26 15:13:58 -05:00
Ethan Lee dc9d98a075 SDL2-CS.dll.config -> app.config 2019-10-27 01:31:27 -04:00
Ethan Lee 99a3123c42 Random tab sanitization 2019-10-23 10:14:09 -04:00
Ethan Lee 0b6091c655 Couple more size_t fixes 2019-10-23 10:09:45 -04:00
Ethan Lee 3185ae7eba RWops size_t fixes, remove unused unsafe keyword 2019-10-23 10:05:22 -04:00