3 ms·
How is this "immediate mode"? I see widgets that are added to a UI using .add() "You should put this widget in a ui with `ui.add(widget);" https://git
by mpweiher 2y ago
How is this "immediate mode"?
I see widgets that are added to a UI using .add()
"You should put this widget in a ui with `ui.add(widget);"
https://github.com/emilk/egui/blob/master/crates/egui/src/widgets/image.rs https://github.com/emilk/egui/blob/master/crates/egui/src/wi...
There appears to be a fluent builder API for these widgets. Is that what makes it "immediate mode"?
- terhechte 2y agoThe logic is called every frame
- fastball 2y agoThey go into a good amount of detail[1] as to what they mean by "immediate mode" (this is linked from one of the windows when you open the page). [1] https://github.com/emilk/egui#why-immediate-mode https://github.com/emilk/egui#why-immediate-mode