2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-07-02 19:13:43 -04:00

Added Raymath binding + Initial examples

- Added Raymath.cs binding. Raylib.cs depends on this since they both share some types.
- Bindings moved into source directly.
- Inital examples port alot of syntax still needs to be fixed.
- Couldn't get cppsharp to work correctly so using a custom generator(WIP).
This commit is contained in:
2018-08-17 09:34:50 +01:00
parent f9350917c2
commit 5286546ad4
154 changed files with 3170 additions and 9265 deletions

View File

@ -3,17 +3,40 @@
C# bindings for raylib 2.0, a simple and easy-to-use library to learn videogames programming (www.raylib.com)
## Installation
- Download the repository
- Run ExampleApplication.exe in ExampleApplication/bin/Debug/
Tested on windows 10 64 bit.
1. Download the repository
2. Run ExampleApplication.exe in ExampleApplication/bin/Debug/
```
using Raylib;
using static Raylib.rl;
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:
## Cppsharp generator:
- Add utility constructors for types -> Vector3(x, y, z).
- Add utility for cleaning up types so they are destroyed with the type.
## General
- Allow raylib to be used inside windows forms
- Convert across raylib examples
- Finish binding generator
- Use raylib in windows forms
- Bind physac, raygui, easings
## Contributing
If you have any ideas, feel free to open an issue and tell me what you think.