From 61eb563a48c3bcd36e6a684056790f25fd0a9e3a Mon Sep 17 00:00:00 2001 From: Miko <110693261+mikomikotaishi@users.noreply.github.com> Date: Wed, 20 Aug 2025 14:49:18 +0000 Subject: [PATCH] Update modules examples to use using statements --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ef8e9d3c..dd5b59f3 100644 --- a/README.md +++ b/README.md @@ -260,12 +260,15 @@ If using C++20 or later, by passing `BUILD_RAYLIB_CPP_MODULES` to the build syst ```cpp import raylib; +using raylib::Texture; +using raylib::Window; + int main() { int screenWidth = 800; int screenHeight = 450; - raylib::Window window(screenWidth, screenHeight, "raylib-cpp - basic window"); - raylib::Texture logo("raylib_logo.png"); + Window window(screenWidth, screenHeight, "raylib-cpp - basic window"); + Texture logo("raylib_logo.png"); // ... }