From d56fc7b66389d9bef4d90ced4655b618e83e112a Mon Sep 17 00:00:00 2001 From: Not-Nik Date: Fri, 31 May 2024 20:39:40 +0200 Subject: [PATCH] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c0c722b..40da51e 100755 --- a/README.md +++ b/README.md @@ -85,6 +85,7 @@ const raylib_dep = b.dependency("raylib-zig", .{ const raylib = raylib_dep.module("raylib"); // main raylib module const raylib_math = raylib_dep.module("raylib-math"); // raymath module const rlgl = raylib_dep.module("rlgl"); // rlgl module +const raygui = raylib_dep.module("raygui"); // raygui module const raylib_artifact = raylib_dep.artifact("raylib"); // raylib C library ``` @@ -93,11 +94,11 @@ Now add the modules and artifact to your target as you would normally: ```zig exe.linkLibrary(raylib_artifact); exe.root_module.addImport("raylib", raylib); -exe.root_module.addImport("raylib-math", raylib_math); +exe.root_module.addImport("raymath", raylib_math); exe.root_module.addImport("rlgl", rlgl); ``` -If you additionally want to support Web as a platform with emscripten, you will need `emcc.zig`. Refer to raylib-zig's project template on how to use it +If you additionally want to support Web as a platform with emscripten, you will need to use `emcc.zig` by importing raylib-zig's build script with `const rlz = @import("raylib-zig");` and then accessing its functions with `rlz.emcc`. Refer to raylib-zig's project template on how to use them. ## Exporting for web To export your project for the web, first install emsdk.