Commit Graph

108 Commits

Author SHA1 Message Date
Dan Balasescu cc6c51b5a5
Update bindings 2026-02-24 17:15:48 +09:00
Hadrian Tang e8913bf6c0 Everything to main 2026-02-09 00:29:54 +08:00
Hadrian Tang 13b30a695f Update SDL to 3.4.0, SDL_mixer to 3.1.2, SDL_image to 3.4.0, SDL_ttf to main 2026-02-08 18:08:43 +08:00
Susko3 2b556b39ce Ensure that format strings are null-terminated
u8 constants are implicitly null-terminated, but it's not really documented.
2025-12-13 02:29:00 +01:00
MrLimeick 6e700651b2 Adding missing values ​​to SDL_WindowFlags 2025-12-08 18:57:20 +03:00
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
Susko3 a4781c9b58 Fix bindings not compiling 2025-08-28 14:07:13 +02:00
Susko3 b59358dbf5 Update bindings 2025-08-28 13:37:09 +02:00
Dan Balasescu 742ac35cbc
Update bindings 2025-08-26 07:57:26 +09:00
Dan Balasescu 5a16446ded
Regenerate bindings 2025-08-14 02:28:02 +09:00
Dan Balasescu 6d367145ed
Update bindings 2025-08-03 00:03:07 +09:00
Susko3 7ad887b2a6 Let SDL*_VERSION autogenerate 2025-06-24 11:25:18 +02:00
Susko3 9b834790d4 Update bindings of SDL3 libraries
This brings SDL_image and SDL_ttf up-to-date.
2025-06-23 23:07:46 +02:00
Susko3 bb247fa952 Rework SDL_INIT_INTERFACE and add missing interfaces 2025-06-22 01:39:15 +02:00
Susko3 89fa65f30c Add comment about the chosen buffer size 2025-06-06 18:56:04 +02:00
Susko3 53bedf11e3 Add new SDL_haptic typedefs and enums
While SDL_HapticEffectType has flag-like values, it's publicly not a [Flags] enum
as the possible values are exclusive.
See for example https://wiki.libsdl.org/SDL3/SDL_HapticPeriodic.
2025-06-06 18:47:40 +02:00
Susko3 29c7e9c126 Add SDL_GetEventDescription helper 2025-06-06 18:23:59 +02:00
Dan Balasescu 831d80fc10
Update bindings to 7dd5e765df239986f78c9b0016e3f3023d885084 2025-06-06 20:17:45 +09:00
hwsmm c747f1dcdd Update bindings 2025-02-20 20:49:58 +09:00
Susko3 87b6598855 Fix SDL_Pen constants 2025-01-25 17:19:15 +00:00
Susko3 e9be289b30 Add new enum members 2025-01-25 15:33:05 +00:00
Susko3 b00293457a Update SDL3 bindings for Windows Ink support 2025-01-25 15:00:58 +00:00
Susko3 f988cb2d0b Implement helper for SDL_GetTrayEntries()
The returned array should not be SDL_free'd as it's a `const` pointer.
2025-01-05 04:33:11 +00:00
Susko3 e017626460 Add SDL_tray 2024-12-31 01:06:32 +01:00
hwsmm d393ea3354 Update bindings 2024-12-29 20:12:05 +09:00
Dan Balasescu 7137484799
Merge pull request #184 from Susko3/update-bindings
Update SDL bindings
2024-12-18 15:13:35 +09:00
Susko3 be946eb23c Add `SDLOpaquePointerArray` and use it for SDL_GetWindows()
`SDLPointerArray` is inadequate as it does `*(SDL_Window*)ptr` which doesn't make sense
as SDL_Window* is an opaque pointer type
2024-12-17 17:20:45 +01:00
Susko3 d86ca88246 Update SDL bindings 2024-12-17 15:49:42 +01:00
Susko3 2590a7205e Update SDL_ISPIXELFORMAT_ALPHA
e027b85cc4
2024-11-17 21:51:08 +00:00
Susko3 1bbb7292b3 Update SDL and generate bindings 2024-11-17 21:34:24 +00:00
Susko3 a7f3fe450d Generate bindings on Linux
This will be the canonical representation going forward.
2024-10-24 12:04:00 +01:00
Dan Balasescu e7c8dec375
Merge branch 'master' into dockerfile 2024-10-24 16:18:48 +09: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 ec696f7bab Remove `[NativeTypeName("unsigned int")]`
This would appear a lot when bindgen is run on Linux (underlying enum type is unsigned int).
2024-10-24 00:52:29 +01:00
Susko3 fa61d32dfc Exclude symbols that don't work cross-platform
As seen when trying to build on Linux in #169.
Removes:
- Windows-specific begin/end thread symbols that don't do anything
- Things that statically depend on `size_t`
- 64-bit printf specifiers that depend on int64_t definition
  (long vs long long)
2024-10-24 00:48:29 +01:00
Dan Balasescu a64cdd9e4f
Fix SDL_thread generation 2024-10-22 18:16:41 +09:00
Dan Balasescu 5227b62690
Add dockerfile + generation wrapper script 2024-10-22 17:52:46 +09:00
Susko3 e5a7980b9e Exclude `enum`s from platform-specific bindgen 2024-10-22 09:20:55 +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 05c7ec057c Add some missing macros 2024-10-02 02:13:12 +01:00
Susko3 98930ae886 Update bindings 2024-10-02 00:51:01 +01:00
hwsmm df84a111c7 Fix endianness in SDL_pixel 2024-09-22 13:43:13 +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
Susko3 fb08ccb2ce Remove SDL_bool define patche
This doesn't compile as true/false can't be converted to `enum SDL_bool`
2024-09-22 00:51:50 +01:00
hwsmm 4792b4667b Add a new SDL_Process bindings 2024-09-15 11:06:03 +09:00