Raylib-CSharp is a fully managed binding over Raylib-5.1-dev
.
🪙 Installation - Nuget
dotnet add package Raylib-CSharp --version 4.1.5
- 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.
- Using
OpenGL-4.3
- Using
OpenGL-4.3
- Using
OpenGL-3.3
📖 Differences from Raylib-cs
Raylib-cs | Raylib-CSharp |
---|---|
One Binding Class (Raylib.cs ). |
Managed Classes like Window, Music... . |
Uses DllImport and makes using pointers required in some cases. |
Uses LibraryImport and using pointers is optional . |
Using one Namespace . |
Using multiple Namespaces ! |
.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.1-dev |
This library is available under the MIT license.
Special thanks to the author(s) and contributors of the following projects