Raylib-CSharp is a fully managed binding over Raylib.
🪙 Installation - Nuget
dotnet add package Raylib-CSharp --version 3.0.6
- Clone this repository.
- Add
Raylib-CSharp.csproj
as a reference to your project.- Ensure that you integrate the
CMake.props
file into your project setup to facilitate the building process for the .dlls.
📖 Differences from Raylib-cs
Raylib-cs | Raylib-CSharp |
---|---|
One Binding Class (Raylib.cs ). |
Managed Classes like Window, Music... . |
Uses DllImport and makes using pointers requiered in some cases. |
Uses LibraryImport and using pointers is optional . |
Using one Namespace . |
Using multiple Namepsaces ! |
.NET 5.0, 6.0 / C# 10 | .NET 8.0 / C# 12 |
Released 2018-07 | Released 2024-05 |
License ZLib | License MIT |
Raylib 5.0 | Raylib 5.0 |
This library is available under the MIT license.
Special thanks to the author(s) and contributors of the following projects