Skip to content

Bleeding-edge C# bindings for raylib, a simple and easy-to-use library to learn videogames programming

License

Notifications You must be signed in to change notification settings

danilwhale/Raylib-cs.BleedingEdge

Repository files navigation

Logo

Raylib-cs.BleedingEdge

Bleeding-edge C# bindings for raylib, a simple and easy-to-use library to learn videogames programming (www.raylib.com)

Discord NuGet Downloads GitHub License GitHub Repo stars GitHub commit activity GitHub Actions Workflow Status


Raylib-cs.BleedingEdge targets .NET 8+ and binds raylib's master branch

there are WIP examples. you can reference raylib-cs or raylib for missing examples

installation

$ dotnet add package Raylib-cs.BleedingEdge --prerelease
$ dotnet add package Raylib-cs.BleedingEdge.Runtimes --prerelease

if you need...

  • ... just runtimes: install Raylib-cs.BleedingEdge.Runtimes.

  • ... custom native build: uninstall Raylib-cs.BleedingEdge.Runtimes and add CompileNatives.props to your project and import it (add <Import Project="CompileNatives.props"/>). You also need to clone raylib repo and specify path to it in the CustomNatives.props (by default it's ../raylib)

  • ... to compile a static library: add <CompileShared>false</CompileShared> to your project's PropertyGroup. Note that you need custom native build setup for this (read above).

  • ... prebuilt static library: you can get it from GitHub Actions. You need GitHub account to do this.

"hello, world!"

using Raylib_cs.BleedingEdge;
using static Raylib_cs.BleedingEdge.Raylib;

const int screenWidth = 800;
const int screenHeight = 450;

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();

About

Bleeding-edge C# bindings for raylib, a simple and easy-to-use library to learn videogames programming

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published