mirror of https://github.com/ppy/SDL3-CS.git
C# bindings for SDL3 (https://github.com/libsdl-org/SDL)
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. |
||
|---|---|---|
| .config | ||
| .idea/.idea.SDL3-CS/.idea | ||
| SDL3-CS | ||
| SDL3-CS.SourceGeneration | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .globalconfig | ||
| Directory.Build.props | ||
| LICENCE | ||
| README.md | ||
| SDL3-CS.licenseheader | ||
| SDL3-CS.sln | ||
| global.json | ||