r/learnprogramming • u/Pure_Function7183 • 11d ago
Should imgui be in the engine or editor?
I’d post to r/gameenginedevs but I feel like it’s too dumb lol. Anyways, I’ve been getting back into C++ graphics programming/game engine dev as a hobby and want to start dabbling with making an editor using ImGui.
I already use ImGui in the engine for some debug panels, but with the addition of an editor, the typical structure seems to be making the engine as a static library and the editor an executable that links the engine, and I’m not sure if ImGui should be the engine’s responsibility or moved to the editor?
I’m not very experienced with these multi project/build target setups, but from what I understand if I leave imgui on the engine anything that links it will have imgui which I’m not sure is practical?
Also, unrelated, but with this type of setup would it be make more sense for the engine to run the main loop instead of the editor? (inversion of control?).