From c56d1668b1ffd156609805c62a562bceec65d61a Mon Sep 17 00:00:00 2001 From: sonoro1234 Date: Mon, 9 Feb 2026 11:02:51 +0100 Subject: [PATCH] README.md: constructors more explained --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 79859be..48b1999 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Notes: * you will need LuaJIT (https://github.com/LuaJIT/LuaJIT.git better 2.1 branch) or precompiled for linux/macOS/windows in https://luapower.com/luajit/download * you need to use also a C++ compiler for doing preprocessing: gcc (In windows MinGW-W64-builds for example), clang or cl (MSVC). (this repo was done with gcc) * update `imgui` folder to the version you desire. -* edit `generator/generator.bat` on windows, or `generator/generator.sh` on linux, to choose between gcc, clang, or cl and to choose desired backends and whether imgui_internal is generated or not, comments are generated or not and if constructors are generated also with versions performing just initialization of structs provided by yourself (_Construct is added to the constructor names) +* edit `generator/generator.bat` on windows, or `generator/generator.sh` on linux, to choose between gcc, clang, or cl and to choose desired backends and whether imgui_internal is generated or not, comments are generated or not and if constructors are generated also with versions performing just initialization of structs provided by yourself (uses IM_PLACEMENT_NEW and _Construct is added to the constructor names) * the defaults of generator are gcc as compiler, imgui_internal included and sdl, glfw, vulkan, opengl2 and opengl3 as backends. * edit config_generator.lua for adding includes needed by your chosen backends (vulkan needs that). * Run generator.bat or generator.sh with gcc, clang or cl and LuaJIT on your PATH. @@ -70,7 +70,7 @@ Notes: * manual : will be true if this function is hand-written (not generated) * skipped : will be true if this function is not generated (and not hand-written) * isvararg : is set if some argument is a vararg - * constructor : is set if the function is a constructor for a class. + * constructor : is set if the function is a constructor for a class. (another destructor function with _destroy postfix will be created) * destructor : is set if the function is a destructor for a class but not just a default destructor. * realdestructor : is set if the function is a destructor for a class * templated : is set if the function belongs to a templated class (ImVector)