3 ms·
Well, I can keep the state, but a retained mode UI model does it for me :)
by amelius 9mo ago
Well, I can keep the state, but a retained mode UI model does it for me :)
- lioeters 9mo agoBut then you have state in two places, user code and the retained-mode GUI framework, which need to be synced - that's where complexity creeps in. Immediate mode removes that redundancy and makes things simpler in many situations. It depends on your preference and what you're doing too, which approach suits better.
- amelius 9mo agoBut why do you think retained mode was invented if "just drawing" is so simple?
- lioeters 9mo agoHere's an informative explanation in the DearImgui library which chose this approach. https://github.com/ocornut/imgui/wiki/About-the-IMGUI-paradigm https://github.com/ocornut/imgui/wiki/About-the-IMGUI-paradi...