IMGUI与RMGUI技术比较
我试图弄清楚与保留的GUI相反的真正立即模式。
如在dear imgui docs中所述( https://github.com/ocornut/imgui ): “ IMGUI试图从用户的角度来最大程度地减少多余的状态重复,状态同步和状态保留。”
这就是我现在理解的方式。
假设我们在UI中获得复选框:
IMGUI:复选框,其值直接来自数据,并且编辑值立即返回到数据,这使复选框无状态。
RMGUI:复选框是一个具有自己的状态1/0的对象,它来自INIT的数据,并且它不断在对象中进行更新,但不会立即注入数据。
我的想法正确吗? 你能给我更多这种比较的例子吗?
此致
I am trying to figure out what really Immediate Mode GUI is in opposite to Retained one.
As it is described in Dear ImGui docs (https://github.com/ocornut/imgui):
"An IMGUI tries to minimize superfluous state duplication, state synchronization and state retention from the user's point of view."
That's how I understand it right now.
Lets assume we got checkbox in our UI:
IMGUI: Checkbox is drawn with value that comes directly from data and on edit value goes back immediately to the data, which makes checkbox stateless.
RMGUI: Checkbox is an object with its own state 1/0 which comes from data on init and it keeps being updated in object, but does not get injected to the data immediately.
Is my thinking correct?
Could you please, give me some more examples of such comparison?
Best regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论