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
2018-10-05 22:31:02 +05:30
.github/ISSUE_TEMPLATE Update issue templates 2018-09-26 18:32:29 +01:00
Bindings Changing Dllimport calling conventions to Cdecl 2018-10-05 22:31:02 +05:30
Examples Changing examples to use makefile 2018-10-01 09:25:18 +01:00
Generator Organising generator code 2018-09-11 22:26:31 +01:00
Logo Added logos and updated readme 2018-09-13 12:00:51 +01:00
Templates Initial templates 2018-09-24 11:10:22 +01:00
.gitignore Updated bindings! 2018-09-10 12:18:51 +01:00
LICENSE Added LICENSE 2018-07-13 14:51:05 +01:00
Raylib-cs.nuspec Added test nuspec file for nuget package 2018-09-22 13:40:29 +01:00
Raylib-cs.sln Changing examples to use makefile 2018-10-01 09:25:18 +01:00
README.md Changing examples to use makefile 2018-10-01 09:25:18 +01: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)

Bindings:

  • Easings
  • Physac
  • Raygui
  • Raylib
  • Raymath

Installation

Tested on windows 10 64 bit using the mono compiler.

  1. Download the repository
  2. Run Examples.exe in Examples/bin/Debug/
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();
	}
}

TODO:

  • Generator improvements
  • .Net Core support
  • Windows forms support
  • Auto select x86/x64 dll

Differences

  • interger constants are enums. KEY_ENTER -> Key.ENTER

  • types changed to work with C#. char * -> string

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.