Automatically updated C# bindings for https://github.com/libsdl-org/SDL
, on the main
branch for v3, with native dynamic link libraries.
- Download and install .NET 8.
- Fork the repository using GitHub or clone the repository manually with submodules:
git clone --recurse-submodules https://github.com/bottlenoselabs/SDL-cs
. - 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. Thelibrary.sh
script requires that CMake is installed and in your environment variablePATH
. - 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.
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.
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.