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
31 min 18 sec ago
40 min 40 sec ago
45 min 37 sec ago
8 hours 39 sec ago
8 hours 16 min ago
12 hours 58 min ago
15 hours 32 min ago
21 hours 43 min ago
1 day 4 hours ago
1 day 6 hours ago