Raylib-cs.BleedingEdge.Static
5.5.0-dev-77
This package is no longer maintained due to structure changes being temporarily
dotnet add package Raylib-cs.BleedingEdge.Static --version 5.5.0-dev-77
NuGet\Install-Package Raylib-cs.BleedingEdge.Static -Version 5.5.0-dev-77
<PackageReference Include="Raylib-cs.BleedingEdge.Static" Version="5.5.0-dev-77" />
<PackageVersion Include="Raylib-cs.BleedingEdge.Static" Version="5.5.0-dev-77" />
<PackageReference Include="Raylib-cs.BleedingEdge.Static" />
paket add Raylib-cs.BleedingEdge.Static --version 5.5.0-dev-77
#r "nuget: Raylib-cs.BleedingEdge.Static, 5.5.0-dev-77"
#:package Raylib-cs.BleedingEdge.Static@5.5.0-dev-77
#addin nuget:?package=Raylib-cs.BleedingEdge.Static&version=5.5.0-dev-77&prerelease
#tool nuget:?package=Raylib-cs.BleedingEdge.Static&version=5.5.0-dev-77&prerelease
Raylib-cs.BleedingEdge
C# bindings for raylib, a simple and easy-to-use library to learn videogames programming (www.raylib.com)
Raylib-cs.BleedingEdge targets .NET 8+ and uses the master branch of raylib repo
To see examples, you can reference the Raylib-cs examples as this binding has mostly same function signatures (see code differences)
installation
You will need to install one of the following NuGet packages:
- Base
- Shared
- Static
- Features static library, which can be linked with your NativeAOT project to make portable and compact executable.
- All static libraries will get copied to
static-runtimes
inside of your project root folder and are structured like this:static-runtimes / RID / raylib.lib/libraylib.a
; - https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/interop
In case you need only prebuilt raylib, you can just install Raylib-cs.BleedingEdge.Runtimes.Static or Raylib-cs.BleedingEdge.Runtimes.Shared depending on your needs (read above)
basic example
using Raylib_cs.BleedingEdge;
using static Raylib_cs.BleedingEdge.Raylib;
const int screenWidth = 800;
const int screenHeight = 540;
InitWindow(screenWidth, screenHeight, "raylib [core] example - basic window");
while (!WindowShouldClose())
{
BeginDrawing();
ClearBackground(Color.RayWhite);
DrawText("Congrats! You created your first window!", 190, 200, 20, Color.LightGray);
EndDrawing();
}
CloseWindow();
differences from Raylib-cs
main differences
Raylib-cs | Raylib-cs.BleedingEdge |
---|---|
.NET 6.0+ | .NET 8.0+ |
Released 07-2018 | Released 08-2024 |
raylib 5.0 | raylib 5.5-dev (master) |
API differences
There are minor enum value name differences, such as WindowHighDpi
instead of HighDpiWindow
,
KbMenu
instead of KeyboardMenu
. Enum value names in this binding are same as in raylib,
but renamed to match PascalCase
Raylib-cs | Raylib-cs.BleedingEdge |
---|---|
using Raylib-cs |
using Raylib-cs.BleedingEdge |
T[] for functions with pointers |
Span<T> for functions with pointers |
int argument for the length of array |
-, use Span<T>.Slice if necessary |
Utf8Buffer |
Utf8Handle |
AudioCallback |
AudioMixedCallback |
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Raylib-cs.BleedingEdge (>= 5.5.0-dev-77)
- Raylib-cs.BleedingEdge.Runtimes.Static (>= 5.5.0-dev-77)
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 | |
---|---|---|---|
5.5.0-dev-77 | 86 | 10/15/2024 | |
5.5.0-dev-76 | 65 | 10/15/2024 | |
5.5.0-dev-75 | 67 | 10/15/2024 | |
5.5.0-dev-74 | 66 | 10/15/2024 | |
5.5.0-dev-72 | 68 | 10/15/2024 |