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
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ texture.Draw(50, 50, WHITE);
86
86
87
87
### Optional Parameters
88
88
89
-
Many methods have optional parameters with the same defaults.
89
+
Many methods have optional parameters with sane defaults.
90
90
91
91
``` cpp
92
92
// raylib
@@ -145,13 +145,13 @@ DrawPixelV(position, color); // Extra V in method name.
145
145
raylib::Color color = raylib::Color::Gray();
146
146
color.DrawPixel(50, 50);
147
147
Vector2 position(50.0f, 50.0f);
148
-
color.DrawPixel(position); // No more V in method name.
148
+
color.DrawPixel(position); // No V in method name.
149
149
position.DrawPixel(color); // Alternatively
150
150
```
151
151
152
152
### Method Chaining
153
153
154
-
When there's a method that doesn't return anything, it'll instead return the object itself, allowing [method chaining](https://en.wikipedia.org/wiki/Method_chaining).
154
+
When there's a method that doesn't return anything, in most cases it'll return the object itself, allowing [method chaining](https://en.wikipedia.org/wiki/Method_chaining).
155
155
156
156
``` cpp
157
157
// raylib
@@ -191,12 +191,12 @@ When there is a function that would return a pointer-array, there is a wrapper t
0 commit comments