Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ int main() {
{
BeginDrawing();

window.ClearBackground(RAYWHITE);
window.ClearBackground(raylib::Color::RayWhite());

DrawText("Congrats! You created your first window!", 190, 200, 20, LIGHTGRAY);
DrawText("Congrats! You created your first window!", 190, 200, 20, raylib::Color::LightGray());

// Object methods.
logo.Draw(
Expand Down Expand Up @@ -69,7 +69,7 @@ DrawPixelV(position, PURPLE);

// raylib-cpp
raylib::Vector2 position(50, 50);
position.DrawPixel(PURPLE);
position.DrawPixel(raylib::Color::Purple());
```

### Method Names
Expand All @@ -81,7 +81,7 @@ If a method's name contains an object's name, it is removed from its name to sho
DrawTexture(texture, 50, 50, WHITE);

// raylib-cpp
texture.Draw(50, 50, WHITE);
texture.Draw(50, 50, raylib::Color::White());
```

### Optional Parameters
Expand All @@ -93,7 +93,7 @@ Many methods have optional parameters with sane defaults.
DrawTexture(texture, 50, 50, WHITE);

// raylib-cpp
texture.Draw(50, 50); // WHITE is provided as the default tint.
texture.Draw(50, 50); // raylib::Color::White() is provided as the default tint.
```

### Object Destructors
Expand Down
Loading