4 ms·
Motif and Xlib use expose events to handle drawing. Doesn't imply retained mode drawing; you could use either in the handler.
by rleigh 10y ago
Motif and Xlib use expose events to handle drawing. Doesn't imply retained mode drawing; you could use either in the handler.
- jblow 10y agoIt is a little confusing because we are talking about both rendering and GUIs, but ... "retained mode" in this case refers to the GUI itself, not the method of drawing. Motif and Xlib are "retained mode" in the GUI sense because if you want there to be a button, you instantiate that button and register it with the library, and then if you want it to become visible or invisible or change color you call procedures that poke values on that instantiated button. In IMGUI you don't preinstantiate; you just say "draw a button now" and if you don't want it to be visible, you just don't draw it, etc.