Skip to content

Compiling implot demo program with MinGW #497

Answered by hinxx
cwlai2021 asked this question in Q&A
Discussion options

You must be logged in to vote

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..

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@cwlai2021
Comment options

@hinxx
Comment options

@cwlai2021
Comment options

@hinxx
Comment options

@cwlai2021
Comment options

Answer selected by cwlai2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants