Commit Graph

7 Commits

Author SHA1 Message Date
peterino 98d543c0ee Merge pull request 'zig-0.17' (#1) from zig-0.17 into integration
Reviewed-on: #1
2026-11-13 04:50:13 +00:00
Peterino2 fa4d485d29 Add bindings for SDL 3.4.2 through 3.4.20
castholm: v0.4.1+3.4.2, v0.4.2+3.4.4, v0.5.0+3.4.8, v0.5.1+3.4.10,
v0.5.2+3.4.12, v0.5.3+3.4.14, v0.5.4+3.4.16, v0.6.0+3.4.18,
v0.6.1+3.4.20

official: release-3.4.2, 3.4.4, 3.4.6, 3.4.8, 3.4.10, 3.4.12, 3.4.14,
3.4.16, 3.4.18, 3.4.20
2026-11-13 02:56:42 +00:00
Peterino2 de6fb1b466 Regenerate bindings for Zig 0.17 with fixed generator
Regenerates every existing release directory with the Zig 0.17 port of
sdlparser-scrap, including its codegen fixes:

- enums: all enumerators are present and numbered as in C (previously
  members written as `NAME = value,` without a comment were dropped,
  e.g. most of Scancode and PixelFormat); duplicate values are aliases
- flags: packed struct fields sit on the bit the header assigns (flags
  after a gap, such as SDL_WINDOW_VULKAN, were on the wrong bit)
- structs: fields followed by a multi-line comment are no longer dropped
  (VirtualJoystickDesc, HapticPeriodic had wrong layouts)
- wrappers: casts follow how each type is declared, so the inline
  functions type-check against the translated C API
- uses @backingInt/@fromBackingInt and callconv(.c)
- new modules: guid, pen, iostream, keyboard, scancode, power, process,
  opengl, tray plus the c.zig/stdinc.zig bridge files
- castholm v0.1.0 (SDL 3.1.6) now generates; stale debug output removed

Verified per release on Linux against that release's headers: wrapper
bodies compile, struct layouts and field offsets, enum values and flag
bits match C. Only Windows/GDK-only symbols are unavailable there.
2026-11-13 02:56:42 +00:00
peterino2 29f193533a updates for enum flags 2026-01-26 23:54:49 -08:00
peterino2 9b02a95231 fixed enums and bitcasts 2026-01-26 21:51:53 -08:00
peterino2 460e012847 updated generation with proper enum values 2026-01-26 20:39:04 -08:00
peterino2 4d598067f3 uploading generated bindings 2026-01-26 01:44:18 -08:00