Susko3
1bbb7292b3
Update SDL and generate bindings
2024-11-17 21:34:24 +00:00
Susko3
11228b67aa
Ensure consistent representation of 64-bit integer constants
...
by providing custom definitions of `SDL_{S,U}INT64_C`.
Made possible by https://github.com/libsdl-org/SDL/pull/11315
2024-10-24 01:18:39 +01:00
Susko3
4831863919
Update SDL and bindings
2024-10-24 01:18:31 +01: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
98930ae886
Update bindings
2024-10-02 00:51:01 +01: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
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
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
8fc87afcec
Update bindings to e1aa99573270eac053b428cc899eebf499b44eca
2024-07-20 17:46:58 +09:00
hwsmm
f12c0ae886
Update bindings to b5a7b1ca89f4187641aa25e411e69448a56955f3
2024-07-12 00:37:43 +09:00
hwsmm
3daf817a01
Update bindings to 596c0af0f319157d748b00d369240a9177a3132f
2024-06-26 01:41:00 +09: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
37da786af0
Define `SDL_FUNCTION_POINTER_IS_VOID_POINTER`
2024-04-06 13:38:13 +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