From a0d46db2f26d7d8dc111e0e328394e88ba39d89d Mon Sep 17 00:00:00 2001 From: sonoro1234 Date: Wed, 5 Apr 2023 11:02:47 +0200 Subject: [PATCH] readme: generation customization instructions --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1b3df2c..376937c 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,8 @@ Notes: * Run generator.bat or generator.sh with gcc, clang or cl and LuaJIT on your PATH. * as a result some files are generated: `cimgui.cpp`, `cimgui.h` and `cimgui_impl.h` for compiling and some lua/json files with information about the binding: `definitions.json` with function info, `structs_and_enums.json` with struct and enum info, `impl_definitions.json` with functions from the backends info. * You can pass compiler flags to generator.sh or generator.bat by editing them at the end of the call to further specify the compiler behavior. (e.g. -DIMGUI_USER_CONFIG or -DIMGUI_USE_WCHAR32) - +* You are able to pass any extra argument to generator.sh (.bat) in the command-line. +* If you are using different options than cimgui repo and if you want to keep them after a cimgui update, you can keep them in a copy of generator.sh (.bat) outside of cimgui folder where `cd cimgui/generator` is used before luajit call. See https://github.com/cimgui/cimgui/issues/232#issuecomment-1497059497 # generate binding * C interface is exposed by cimgui.h when you define CIMGUI_DEFINE_ENUMS_AND_STRUCTS * with your prefered language you can use the lua or json files generated as in: