mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-11-30 10:59:00 +00:00
Update README.md
This commit is contained in:
18
README.md
18
README.md
@@ -48,7 +48,7 @@ See the [examples folder](examples) for more of the raylib examples that have be
|
||||
|
||||
## Features
|
||||
|
||||
There are a few conventions that raylib-cpp takes on when adopting raylib...
|
||||
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.
|
||||
|
||||
### Constructors
|
||||
|
||||
@@ -82,10 +82,22 @@ If a method's name contains an object's name, it is removed from its name to sho
|
||||
|
||||
``` cpp
|
||||
// raylib
|
||||
DrawTexture(texture, 50, 50, RAYWHITE);
|
||||
DrawTexture(texture, 50, 50, WHITE);
|
||||
|
||||
// raylib-cpp
|
||||
texture.Draw(50, 50, RAYWHITE);
|
||||
texture.Draw(50, 50, WHITE);
|
||||
```
|
||||
|
||||
### Optional Parameters
|
||||
|
||||
Many methods have optional parameters with sane defaults.
|
||||
|
||||
``` cpp
|
||||
// raylib
|
||||
DrawTexture(texture, 50, 50, WHITE);
|
||||
|
||||
// raylib-cpp
|
||||
texture.Draw(50, 50); // WHITE is provided as the default tint.
|
||||
```
|
||||
|
||||
### Object Destructors
|
||||
|
||||
Reference in New Issue
Block a user