You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ See the [examples folder](examples) for more of the raylib examples that have be
48
48
49
49
## Features
50
50
51
-
There are a few conventions that raylib-cpp takes on when adopting raylib...
51
+
There are a few conventions that raylib-cpp takes on when adopting raylib. See the [raylib-cpp documentation](https://robloach.github.io/raylib-cpp/index.html) for details on the entire API.
52
52
53
53
### Constructors
54
54
@@ -82,10 +82,22 @@ If a method's name contains an object's name, it is removed from its name to sho
82
82
83
83
```cpp
84
84
// raylib
85
-
DrawTexture(texture, 50, 50, RAYWHITE);
85
+
DrawTexture(texture, 50, 50, WHITE);
86
86
87
87
// raylib-cpp
88
-
texture.Draw(50, 50, RAYWHITE);
88
+
texture.Draw(50, 50, WHITE);
89
+
```
90
+
91
+
### Optional Parameters
92
+
93
+
Many methods have optional parameters with sane defaults.
94
+
95
+
``` cpp
96
+
// raylib
97
+
DrawTexture(texture, 50, 50, WHITE);
98
+
99
+
// raylib-cpp
100
+
texture.Draw(50, 50); // WHITE is provided as the default tint.
0 commit comments