I got frustarted with ImGui's Pop/Push/Begin/End approach and added myself some RAII wrappers over ImGui. Can definitely recommend, code is much cleaner when I don't need to structure my code so that the closing code always runs
user92578
There's also an annoying inconsistency where for some widgets, the pattern is if (BeginWidget()) { RenderMyStuff(); EndWidget(); } and for some it is if (BeginWidget()) { RenderMyStuff(); } EndWidget();
user92578
Now I can just specify which one the call is in my RAII wrapper so I don't need to remember to look it up anymore