From d4fb6c2e2dc5b4d3aff0f71df58d076202957ca6 Mon Sep 17 00:00:00 2001 From: Not-Nik Date: Sat, 13 Jul 2024 15:08:59 +0200 Subject: [PATCH] Add note about defining feature macros --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index cf930cf..0e2a36c 100755 --- a/README.md +++ b/README.md @@ -88,6 +88,16 @@ exe.root_module.addImport("raygui", raygui); 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. +### Defining feature macros + +Raylib lets the user enable and disable options for different features, loading different file formats for images, +fonts, 3D models and audio, linkage variants. You can specify these options for your raylib-zig build by defining the +corresponding C macro before you link with it, e.g.: + +```zig +raylib_artifact.defineCMacro("SUPPORT_FILEFORMAT_JPG", null); +``` + ## Exporting for web To export your project for the web, first install emsdk. Once emsdk is installed, set it up by running