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
2019-02-06 18:52:03 +00:00
.github/ISSUE_TEMPLATE Update issue templates 2018-09-26 18:32:29 +01:00
Bindings Moving dependencies so there in one place 2018-12-29 12:23:17 +00:00
Examples Fixing physac issues 2018-11-30 10:12:55 +00:00
Generator Small fixes 2018-12-17 23:33:20 +05:30
Logo Added logos and updated readme 2018-09-13 12:00:51 +01:00
Test.NetCore Moving dependencies so there in one place 2018-12-29 12:23:17 +00:00
Test.NetCoreRT Moving dependencies so there in one place 2018-12-29 12:23:17 +00:00
Test.NetFX Moving dependencies so there in one place 2018-12-29 12:23:17 +00:00
.gitignore Added pdb files to Test.NetCore/lib 2018-12-17 08:10:01 +00:00
LICENSE Added LICENSE 2018-07-13 14:51:05 +01:00
Raylib-cs.nuspec Work on nuget support 2018-12-29 12:27:30 +00:00
Raylib-cs.sln Moving dependencies so there in one place 2018-12-29 12:23:17 +00:00
Raylib-cs.targets Work on nuget support 2018-12-29 12:27:30 +00:00
README.md Update README.md 2019-02-06 18:52:03 +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.

  1. Add the nuget package

  2. Start coding!

using Raylib;
using static Raylib.Raylib;

static class Program
{
	public static void Main() 
	{
		InitWindow(640, 480, "Hello World");

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

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

			EndDrawing();
		}

		CloseWindow();
	}
}

Custom build

If you need to build raylib yourself these are the current changes required.

  1. Add raygui
  2. Add a 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.