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

Breaking change

- Removed constants. Enums used instead.
- Changed some functions to take enum instead of int to remove explicit cast.
- Updated readme with differences.
This commit is contained in:
2019-02-11 11:23:33 +00:00
parent 2725e1df2a
commit 19dab0c7a1
2 changed files with 38 additions and 205 deletions

View File

@ -25,8 +25,8 @@ static class Program
{
BeginDraw();
ClearBackground(WHITE);
DrawText("Hello, world!", 12, 12, 20, BLACK);
ClearBackground(Color.WHITE);
DrawText("Hello, world!", 12, 12, 20, Color.BLACK);
EndDrawing();
}
@ -36,8 +36,13 @@ static class Program
}
```
# Tech notes
The bindings are close to the original with a few changes and extensions.
- Enums are passed in as type instead of int to avoid explicit casting to a int every time.
- Added constructors for some of the types.
- Color contains
## Custom build
If you need to build raylib yourself these are the current changes required.
1. Add [raygui](https://github.com/raysan5/raygui)
2. Add a file with the following
```c