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:
11
README.md
11
README.md
@ -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
|
||||
|
Reference in New Issue
Block a user