-
Dear all, export IMGUI_DIR=/c/tmp/imgui-docking For implot, however, I still can't figure how to compile a demo. More specifically, I can't find a demo main.cpp nor a Makefile. May I ask how I can, by using MinGW, compile a demo of implot (hopefully with a main.cpp and a Makefile), or using the command line similar to the above for the compilation? Your help is greatly appreciated. Thank you. Kevin |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
If you take a look at the implot Integration chapter in README.md you be on the right track to modify ImGui main.cpp with ImPlot function calls. To see ImPlot demo window do as follows. In imgui main.cpp, first include implot.h. Create ImPlot context after ImGui context with ImPlot::CreateContext(). Add a call to ImPlot::ShowDemoWindow() after the call to ImGui::ShowDemoWindow(). Also add ImPlot::DestroyContext() before ImGui::DestroyContext() to destroy the ImPlot context at exit. Recompile and start the example.. |
Beta Was this translation helpful? Give feedback.
If you take a look at the implot Integration chapter in README.md you be on the right track to modify ImGui main.cpp with ImPlot function calls.
To see ImPlot demo window do as follows.
In imgui main.cpp, first include implot.h. Create ImPlot context after ImGui context with ImPlot::CreateContext(). Add a call to ImPlot::ShowDemoWindow() after the call to ImGui::ShowDemoWindow(). Also add ImPlot::DestroyContext() before ImGui::DestroyContext() to destroy the ImPlot context at exit.
Recompile and start the example..