An open API service indexing awesome lists of open source software.

https://github.com/hexaengine/hexa.net.sdl

A C# wrapper for SDL2
https://github.com/hexaengine/hexa.net.sdl

csharp dotnet native sdl2 wrapper

Last synced: 8 months ago
JSON representation

A C# wrapper for SDL2

Awesome Lists containing this project

README

          

# Hexa.NET.SDL

Hexa.NET.SDL is a minimal C# wrapper for the SDL2 & 3 library, providing a thin, 1:1 binding to SDL's C functions. This wrapper is designed for developers who need direct access to the SDL library's functionality from C#, without added complexity or overhead.

## Features

- **Minimal Wrapper**: Provides a direct, 1:1 mapping to the SDL C functions, staying true to the original API.
- **Cross-Platform Compatibility**: Works across all platforms supported by SDL, including Windows, Linux, Android, and macOS.
- **Pre-Built Native Libraries**: The package includes pre-built native libraries, so you don't need to worry about installing SDL separately.

## Installation

You can install Hexa.NET.SDL2 via NuGet:

```bash
dotnet add package Hexa.NET.SDL2
```

And Hexa.NET.SDL3 via NuGet:

```bash
dotnet add package Hexa.NET.SDL3
```

Alternatively, you can visit the [SDL2](https://www.nuget.org/packages/Hexa.NET.SDL2)/[SDL3](https://www.nuget.org/packages/Hexa.NET.SDL3) and follow the instructions there.

## Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

## License

Hexa.NET.SDL is licensed under the MIT License. See the [LICENSE](https://github.com/HexaEngine/Hexa.NET.SDL/blob/master/LICENSE.txt) file for more information.