But most of SDL's features are implemented and stable! I invite you to use it, test it out, and perhaps even do a couple of PRs!
Please read the Installation Docs
Refer to SDL2.NET Tests for an example on how to use this library
Bringing SDL2 into .NET with its code styles and best practices. Based on https://github.com/flibitijibibo/SDL2-CS (and/or https://github.com/ppy/SDL2-CS) and forked from https://github.com/DoogeJ/SDL2Example There are probably a lot of beginner mistakes in this; feel free to point them out to me.
Library project MIT License. All used external libraries, binaries, resources under their respective licenses as listed here or stored in the lib folder.
- This is a .NET 6 application: https://dotnet.microsoft.com/en-us/download/dotnet/6.0
- Anyone with experience developing interoping apps with C#, I'd be very thankful for a solution for, or help in solving the issue of including SDL's binaries for other platforms into the library as well -- potentially in a form that would allow for multiple NuGet packages?
- Check the comments in SDL2Example.csproj
- If you use VS Code, set the program path in launch.json to the executable (not dll), for example
${workspaceFolder}/bin/Debug/net6.0/SDL2Example.exe
or external resources will not load properly when debugging
- Official SDL docs: https://wiki.libsdl.org/
- SDL_ttf docs: https://www.libsdl.org/projects/docs/SDL_ttf/
- SDL_image docs: https://libsdl.org/projects/docs/SDL_image/
- SDL_mixer docs: https://libsdl.org/projects/docs/SDL_mixer/
- SDL_gfx docs: https://www.ferzkopp.net/Software/SDL2_gfx/Docs/html/index.html
- Getting started with SDL tutorials: https://lazyfoo.net/tutorials/SDL/index.php
- Jemery Sayers' SDL2-CS basics: https://github.com/JeremySayers/SDL2-CS-Tutorial
- SDL2: https://www.libsdl.org/download-2.0.php
- SDL2_gfx: https://github.com/py-sdl/sdl2gfx-builds/releases/tag/1.0.4
- SDL2_image: https://www.libsdl.org/projects/SDL_image/
- SDL2_mixer: https://www.libsdl.org/projects/SDL_mixer/
- SDL2_ttf: https://github.com/libsdl-org/SDL_ttf/releases/tag/release-2.0.18
- SDL2-CS, Ethan Lee (flibitijibibo), zlib/libpng license: https://github.com/flibitijibibo/SDL2-CS (and/or https://github.com/ppy/SDL2-CS)