29 lines
753 B
Markdown
29 lines
753 B
Markdown
# generated zig bindings for SDl3
|
|
|
|
Generated by peter's scrap parser.
|
|
|
|
https://git.peterino.com/searzocom/sdlparser-scrap
|
|
|
|
These are not tested, use at your own peril
|
|
|
|
everything under castholm is generated from castholm's SDL repo
|
|
|
|
git@github.com:castholm/SDL.git
|
|
|
|
everything under official is generated from the official SDL repo
|
|
|
|
git@github.com:libsdl-org/SDL.git
|
|
|
|
## usage
|
|
|
|
generated for zig 0.17.0
|
|
|
|
each release directory has an `api/` folder with one zig file per SDL header and a `json/` folder describing the same declarations.
|
|
|
|
the files in `api/` import the translated C API through `api/c.zig`, which expects a `c.zig` next to the `api/` folder:
|
|
|
|
```zig
|
|
// c.zig
|
|
pub const c = @import("sdl_c"); // e.g. a translate-c module of SDL3/SDL.h
|
|
```
|