Commit Graph

31 Commits

Author SHA1 Message Date
hwsmm ddf8f1f478 Update SDL bindings 2025-12-05 20:54:03 +09:00
Susko3 95165b55ea Update SDL bindings 2025-11-15 01:05:22 +01:00
Dan Balasescu 2d7d0ddecc
Regenerate bindings 2025-09-11 09:13:38 +09:00
Dan Balasescu 6d367145ed
Update bindings 2025-08-03 00:03:07 +09:00
Dan Balasescu 831d80fc10
Update bindings to 7dd5e765df239986f78c9b0016e3f3023d885084 2025-06-06 20:17:45 +09:00
Susko3 b00293457a Update SDL3 bindings for Windows Ink support 2025-01-25 15:00:58 +00:00
hwsmm d393ea3354 Update bindings 2024-12-29 20:12:05 +09:00
Susko3 d86ca88246 Update SDL bindings 2024-12-17 15:49:42 +01:00
Susko3 1bbb7292b3 Update SDL and generate bindings 2024-11-17 21:34:24 +00:00
Susko3 c7fdd26674 Update bindings (to illustrate problem)
Duplicate `SDL_Sandbox` definitions prevent compiling.
2024-10-22 09:11:15 +01:00
hwsmm c51cad1aa7 Update bindings to 1cc85c912bb3352a121b1fdc181c6ab6546157df 2024-10-14 14:15:39 +09:00
Susko3 4f32e5fb4e Add SDLBool with implicit bool conversions 2024-09-22 02:03:16 +01:00
Susko3 fa7121a2c4 Update SDL bindings
This brings in the removal of SDL_bool, making it C# `byte`
2024-09-22 01:15:09 +01:00
hwsmm 03f3773985 Update bindings to b15fab0207004282aaf0ab0643fd08579121c88a 2024-09-12 12:32:58 +09:00
hwsmm a7cb45ee1b Update bindings to df501040fd646a1f4eab92aa5b698b35a36013ed 2024-09-03 21:25:00 +09:00
hwsmm 15e2c5442d Update bindings to ace6920d4433599e99083892fc12495239ee3d61 2024-08-28 22:04:50 +09:00
hwsmm 5235b75dd3 Update bindings to 9eac3a434e328bd6f7470eb59076dcf7dae237be 2024-08-22 22:21:40 +09:00
hwsmm dbff763b5c Update bindings to f93920a4f16c4d16f6cd3797191e7894542dac4b 2024-08-11 14:06:24 +09:00
hwsmm aed3cb24dd Update bindings to a1998d106daf1ed1c30ff7a2dfb2a9c7c34d4040 2024-08-06 20:08:00 +09:00
hwsmm 61fb6d840b Update bindings to 4f343f96b4624dac7632fca58438c1664c06a10d 2024-08-05 22:42:50 +09:00
hwsmm 1b1c59046b Update bindings to 35e42d0a254f230bb736cf993a9c3855ea1680a1 2024-07-28 14:32:21 +09:00
hwsmm e96b0ebb39 Update bindings to 53022aeb5e539dda5a97ea5dead7b2be62aaf912 2024-07-26 01:00:35 +09:00
hwsmm 25defdb451 Update bindings to f7877902436eae72e3931b2d9ab9d213e095baab 2024-07-02 23:40:58 +09:00
hwsmm 3daf817a01 Update bindings to 596c0af0f319157d748b00d369240a9177a3132f 2024-06-26 01:41:00 +09:00
Susko3 25c2558184 Update SDL3 bindings
Updates to https://github.com/libsdl-org/SDL/commit/%206f2621438a65abae114a7210914352b4c1d9c6c3.
This matches the binaries.
2024-05-18 12:26:03 +02:00
Susko3 99d1c0f9fa Update bindings to 661f2fc1fca76f79f536919fefe5887a875b6afb
Not too happy with the manually defined enums, but it'll do for now.
2024-05-15 20:05:52 +02:00
Susko3 91cef07624 Add friendly `string?` overloads to C `(const) char *` functions
This is done by adding a `Unsafe_` prefix to `(const) char *` (C# `byte*`) functions.
I am using `string?` instead of `ReadOnlyMemory<byte>?` because the returned pointer can
get invalidated and cause memory-safety issues.

The returned pointer is automatically freed if the return type is `char *`.
I've checked that the documentation for all functions (except in SDL_stdinc.h)
requires calling `SDL_free()` on the pointer.
2024-04-06 14:36:36 +02:00
Susko3 409ecf7536 Add C# enum "typedefs" for C typedefs
This doesn't compile as ClangSharp fails to emit `unchecked`
in `SDL_pen.g.cs` and `SDL_touch.g.cs`.
And `(SDL_bool)` casts in `SDL_rect.g.cs`.
2024-04-06 13:32:55 +02:00
Susko3 dfe2b5b251 Remap C `void *` to C# `IntPtr` 2024-04-06 12:34:11 +02:00
Susko3 53f98fece1 Map C `char` to C# `byte` instead of `sbyte`
This matches .NET's UTF-8 `ReadOnlySpan<byte>` (see `SDL_hints.g.cs`).
2024-04-06 12:31:32 +02:00
Susko3 1512bef026 Initial SDL3-CS binding project with ClangSharp
The bindings don't yet compile. There are errors in SDL_pixels.g.cs, SDL_stdinc.g.cs and SDL_thread.g.cs,
a bunch of warnings about "Function like macro definition records are not supported",
and a few "Info: Potential missing remapping".

Built on SDL commit:
6ad390fc50
2024-04-06 00:57:07 +02:00