YellowDogMan.SDL-CS
1.1.2
Prefix Reserved
dotnet add package YellowDogMan.SDL-CS --version 1.1.2
NuGet\Install-Package YellowDogMan.SDL-CS -Version 1.1.2
<PackageReference Include="YellowDogMan.SDL-CS" Version="1.1.2" />
<PackageVersion Include="YellowDogMan.SDL-CS" Version="1.1.2" />
<PackageReference Include="YellowDogMan.SDL-CS" />
paket add YellowDogMan.SDL-CS --version 1.1.2
#r "nuget: YellowDogMan.SDL-CS, 1.1.2"
#:package YellowDogMan.SDL-CS@1.1.2
#addin nuget:?package=YellowDogMan.SDL-CS&version=1.1.2
#tool nuget:?package=YellowDogMan.SDL-CS&version=1.1.2
🚀 About
This is SDL3#, a C# wrapper for SDL3.
📚 Documentation
For more information about SDL3, visit the SDL wiki.
📝 Installation
git clone https://github.com/edwardgushchin/SDL3-CS
cd SDL3-CS
dotnet build -c Release
or
dotnet add package SDL3-CS
Optional:
dotnet add package SDL3-CS.Native
dotnet add package SDL3-CS.Native.Image
dotnet add package SDL3-CS.Native.TTF
dotnet add package SDL3-CS.Native.Mixer
🎓 Examples
using SDL3;
namespace Create_Window;
internal static class Program
{
[STAThread]
private static void Main()
{
if (!SDL.Init(SDL.InitFlags.Video))
{
SDL.LogError(SDL.LogCategory.System, $"SDL could not initialize: {SDL.GetError()}");
return;
}
if (!SDL.CreateWindowAndRenderer("SDL3 Create Window", 800, 600, 0, out var window, out var renderer))
{
SDL.LogError(SDL.LogCategory.Application, $"Error creating window and rendering: {SDL.GetError()}");
return;
}
SDL.SetRenderDrawColor(renderer, 100, 149, 237, 0);
var loop = true;
while (loop)
{
while (SDL.PollEvent(out var e))
{
if ((SDL.EventType)e.Type == SDL.EventType.Quit)
{
loop = false;
}
}
SDL.RenderClear(renderer);
SDL.RenderPresent(renderer);
}
SDL.DestroyRenderer(renderer);
SDL.DestroyWindow(window);
SDL.Quit();
}
}
More examples can be found here.
✅ Readiness
Library | Stage |
---|---|
SDL3 | |
SDL_image | |
SDL_mixer | |
SDL_tff | |
SDL_shadercross |
🤝 Feedback and Contributions
Do you have an idea or found a bug? Please open an issue or start a discussion.
Please note we have a code of conduct, please follow it in all your interactions with the project.
If you have any feedback, please reach out to us at eduardgushchin@yandex.ru.
We also have a chat in Telegram, where I am ready to answer any of your questions.
💻 Authors
- Eduard Gushchin - Initial work - edwardgushchin
See also the list of contributors who participated in this project.
📃 License
SDL3 and SDL3# are released under the zlib license. See LICENSE for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.1.2 | 82 | 8/22/2025 |
1.0.2 | 70 | 8/22/2025 |
1.0.1 | 135 | 8/14/2025 |
1.0.0 | 126 | 8/14/2025 |
1.0.0-beta3 | 127 | 8/14/2025 |
This is a stable bugfix release, with the following changes:
- Fixed a crash when passing large invalid coordinates to SDL_BlitSurfaceScaled()
- Fixed doubled mouse wheel events on X11
- Fixed doubled SDL_EVENT_GAMEPAD_ADDED events for controllers with automatic gamepad mappings
- Added support for the Google Play 16 KB page size requirement
- Fixed a crash on Android if using SDL for other functionality besides video
- Fixed dynamic loading of the environ symbol on FreeBSD
- Fixed audio playback on PSP