Watch
2
0
Fork
You've already forked raylib-cs
0
C# bindings for raylib, a simple and easy-to-use library to learn videogames programming http://www.raylib.com/
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
ChrisDill d76e1f3c96 Updated enums + cleanup
- Enums updated to match current raylib version. Also moved around to the order matches.
2018-12-03 16:14:27 +00:00
.github/ISSUE_TEMPLATE Update issue templates 2018-09-26 18:32:29 +01:00
Bindings Updated enums + cleanup 2018-12-03 16:14:27 +00:00
Examples Fixing physac issues 2018-11-30 10:12:55 +00:00
Logo Added logos and updated readme 2018-09-13 12:00:51 +01:00
Test.NetCore Fixed VR issue 2018-11-22 15:00:25 +00:00
Test.NetCoreRT Fixed VR issue 2018-11-22 15:00:25 +00:00
Test.NetFX Fixed VR issue 2018-11-22 15:00:25 +00:00
.gitignore Vr example runs, but does not render properly 2018-10-26 13:05:34 +02:00
LICENSE Added LICENSE 2018-07-13 14:51:05 +01:00
Raylib-cs.sln Added Test.CoreRT 2018-10-23 09:13:56 +01:00
README.md Updated install instructions 2018-12-03 15:54:16 +00:00

Raylib-cs Logo

Raylib-cs

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

Installation

So far, I have only tested on Windows. Tips on making things work smoothly on all platforms is appreciated.

You can use the nuget package or install manually from this repo. Look at the Examples and Test projects for reference.

Enjoy!

using Raylib;
using static Raylib.Raylib;

static class Program
{
	public static void Main() 
	{
		InitWindow(640, 480, "Raylib-cs");

		while (!WindowShouldClose())
		{
			BeginDraw();

			ClearBackground(WHITE);
			DrawText("Hello, world!", 12, 12, 20, BLACK);

			EndDrawing();
		}
	
		CloseWindow();
	}
}

Custom build

Gives access to extra modules from C#.

  1. Add raygui
  2. Add a C file with the following
#include "raylib.h"
#include "easings.h"

#define PHYSAC_NO_THREADS
#define PHYSAC_IMPLEMENTATION 
#include "physac.h"

#define RAYGUI_IMPLEMENTATION
#include "raygui.h"

Contributing

If you have any ideas, feel free to open an issue and tell me what you think. If you'd like to contribute, please fork the repository and make changes as you'd like. Pull requests are warmly welcome.

If you want to request features or report bugs related to the library (in contrast to this binding), please refer to the author's project repo.

License

raylib-cs (and raylib) is licensed under an unmodified zlib/libpng license, which is an OSI-certified, BSD-like license that allows static linking with closed source software. Check LICENSE for further details.