From http://sol.gfxile.net/imgui/:
In typical GUI applications you create a bunch of widgets, they get displayed somehow, you query the widgets for information, you send messages and data to said widgets, and finally clean things up after you're done. Some parts of the above is usually done using some kind of visual editor, but the result is usually tons and tons of code all over the place.
This is ok for most applications, but not so convenient for games or other frame-by-frame realtime applications. So, instead of having one place for init, another for ui callbacks, and a third for cleanup, IMGUI can be as simple as this:
if (button(GEN_ID, 15, 15)) {
button_was_pressed();
}
A very interesting point in the design space of UI abstractions. It feels kind of like FRP...without the functions.
Recent comments
3 weeks 5 days ago
44 weeks 17 hours ago
44 weeks 20 hours ago
44 weeks 20 hours ago
1 year 14 weeks ago
1 year 18 weeks ago
1 year 20 weeks ago
1 year 20 weeks ago
1 year 22 weeks ago
1 year 27 weeks ago