bottlenoselabs / SDL-cs

Automatically updated C# bindings for SDL v3 https://github.com/libsdl-org/SDL with native dynamic link libraries.
MIT License
16 stars 3 forks source link
bindings linux macos pinvoke sdl sdl2 windows

SDL-cs

Automatically updated C# bindings for https://github.com/libsdl-org/SDL, on the main branch for v3, with native dynamic link libraries.

How to use

From source

  1. Download and install .NET 8.
  2. Fork the repository using GitHub or clone the repository manually with submodules: git clone --recurse-submodules https://github.com/bottlenoselabs/SDL-cs.
  3. Build the native library by running library.sh. To execute .sh scripts on Windows, use Git Bash which can be installed with Git itself: https://git-scm.com/download/win. The library.sh script requires that CMake is installed and in your environment variable PATH.
  4. Add the src/cs/production/SDL/SDL.csproj C# project to your solution as an existing project and then reference it within your own solution.

Developers: Documentation

For more information on how C# bindings work, see C2CS, the tool that generates the bindings for SDL and other C libraries.

To learn how to use SDL, check out the Lazy Foo' Production.

License

SDL-cs is licensed under the MIT License (MIT) - see the LICENSE file for details.

SDL itself is licensed under ZLib (zlib) - see https://github.com/libsdl-org/SDL/blob/main/LICENSE.txt for more details.