imgui-plot icon indicating copy to clipboard operation
imgui-plot copied to clipboard

Examples

Open josht000 opened this issue 6 years ago • 2 comments

Your project looks really great, builds fine and everything. Can you please include the examples which produced the screenshots as end to end examples? I'm not used to cmake or custom libraries or imgui for that matter, so there are a lot of hurtles for some of us.

Also, you could consider adding imgui as a submodule so we can git clone --recurse-submodules https:// in one line. Anything to make initial setup go more smoothly for noobs.

Thanks, Josh

josht000 avatar Sep 28 '19 04:09 josht000

vote for this too 👍

swr1bm86 avatar Oct 16 '19 07:10 swr1bm86

This would not be so great if you are using other custom widgets that also had imgui as a submodule. It would be best if you used a build system like premake to tie all your imgui "add-ons" and imgui together in one project.

You can view an example of what imgui would look like with a premake here.

To add this imgui-plot widget, you would just need to clone as a submodule or subtree to its own directory, then edit the premake5.lua file in the imgui repo I linked to include the imgui_plot.cpp path in the files struct and the imgui-plot/include directory in the includedirs struct.

If you want to see how premake would be deployed in a larger overall project, you can find an example here.

manoyes avatar Mar 06 '22 23:03 manoyes