I’m implementing a light GUI architecture for my application. So mostly I created Dialog classes, with a Display function in each calling ImGui:: functions. In the main loop I just call Display from all my Dialogs objects.
So dialogs, on user event, call their corresponding “controllers” (I’m not making a MVC architecture), who update the model. The model can also be updated independently from the GUI, so in this case the GUI has to be rendered to display new values.
What would be the ImGui way of doing that? Just wait for the main render loop (i’m using event polling) to loop again? Or maybe with this way I may have some “lag” and I should consider a way to force the rendering of the new values?
If necessary to know, I’m using Glfw+gl3w.