imgui_single_file.h (751B)
1 // dear imgui: single-file wrapper include 2 // We use this to validate compiling all *.cpp files in a same compilation unit. 3 // Users of that technique (also called "Unity builds") can generally provide this themselves, 4 // so we don't really recommend you use this in your projects. 5 6 // Do this: 7 // #define IMGUI_IMPLEMENTATION 8 // Before you include this file in *one* C++ file to create the implementation. 9 // Using this in your project will leak the contents of imgui_internal.h and ImVec2 operators in this compilation unit. 10 #include "../../imgui.h" 11 12 #ifdef IMGUI_IMPLEMENTATION 13 #include "../../imgui.cpp" 14 #include "../../imgui_demo.cpp" 15 #include "../../imgui_draw.cpp" 16 #include "../../imgui_tables.cpp" 17 #include "../../imgui_widgets.cpp" 18 #endif