Skip to content

Commit 263fbe1

Browse files
authored
Update README.md
1 parent 59c79f2 commit 263fbe1

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ See the [examples folder](examples) for more of the raylib examples that have be
4848

4949
## Features
5050

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.
5252

5353
### Constructors
5454

@@ -82,10 +82,22 @@ If a method's name contains an object's name, it is removed from its name to sho
8282

8383
``` cpp
8484
// raylib
85-
DrawTexture(texture, 50, 50, RAYWHITE);
85+
DrawTexture(texture, 50, 50, WHITE);
8686

8787
// 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.
89101
```
90102

91103
### Object Destructors

0 commit comments

Comments
 (0)