Skip to content

Commit 61eb563

Browse files
Update modules examples to use using statements
1 parent 8e01c1d commit 61eb563

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,15 @@ If using C++20 or later, by passing `BUILD_RAYLIB_CPP_MODULES` to the build syst
260260
```cpp
261261
import raylib;
262262
263+
using raylib::Texture;
264+
using raylib::Window;
265+
263266
int main() {
264267
int screenWidth = 800;
265268
int screenHeight = 450;
266269
267-
raylib::Window window(screenWidth, screenHeight, "raylib-cpp - basic window");
268-
raylib::Texture logo("raylib_logo.png");
270+
Window window(screenWidth, screenHeight, "raylib-cpp - basic window");
271+
Texture logo("raylib_logo.png");
269272
270273
// ...
271274
}

0 commit comments

Comments
 (0)