diff --git a/cimgui.cpp b/cimgui.cpp index 7fa2954..abaca4c 100644 --- a/cimgui.cpp +++ b/cimgui.cpp @@ -1,5 +1,6 @@ //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui //based on imgui.h file version "1.76" from Dear ImGui https://github.com/ocornut/imgui +//with imgui_internal.h api #include "./imgui/imgui.h" #include "./imgui/imgui_internal.h" diff --git a/cimgui.h b/cimgui.h index dd1057f..42c3771 100644 --- a/cimgui.h +++ b/cimgui.h @@ -1,5 +1,6 @@ //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui //based on imgui.h file version "1.76" from Dear ImGui https://github.com/ocornut/imgui +//with imgui_internal.h api #ifndef CIMGUI_INCLUDED #define CIMGUI_INCLUDED #include diff --git a/generator/generator.lua b/generator/generator.lua index 767a6cd..5786355 100644 --- a/generator/generator.lua +++ b/generator/generator.lua @@ -415,6 +415,10 @@ while true do end pipe:close() cimgui_header = cimgui_header:gsub("XXX",imgui_version) +if INTERNAL_GENERATION then + cimgui_header = cimgui_header..[[//with imgui_internal.h api +]] +end print("IMGUI_VERSION",imgui_version) --get some defines---------------------------- gdefines = get_defines{"IMGUI_VERSION","FLT_MAX"} diff --git a/generator/output/cimgui.cpp b/generator/output/cimgui.cpp index 7fa2954..abaca4c 100644 --- a/generator/output/cimgui.cpp +++ b/generator/output/cimgui.cpp @@ -1,5 +1,6 @@ //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui //based on imgui.h file version "1.76" from Dear ImGui https://github.com/ocornut/imgui +//with imgui_internal.h api #include "./imgui/imgui.h" #include "./imgui/imgui_internal.h" diff --git a/generator/output/cimgui.h b/generator/output/cimgui.h index dd1057f..42c3771 100644 --- a/generator/output/cimgui.h +++ b/generator/output/cimgui.h @@ -1,5 +1,6 @@ //This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui //based on imgui.h file version "1.76" from Dear ImGui https://github.com/ocornut/imgui +//with imgui_internal.h api #ifndef CIMGUI_INCLUDED #define CIMGUI_INCLUDED #include