added underdeveloped but working image support (no freeing or samplers)

This commit is contained in:
iris committed 2025-08-22 23:07:31 -04:00
1 parent bde929b05a
commit 7dbdcbba42
26 files changed
+1256 -155

No files matched your search

+1 -2
View File
@@ -41,8 +41,7 @@ pub(crate) use WidgetFnRet;
impl<W: Widget<Ctx>, Ctx, F: FnOnce(&mut Ui<Ctx>) -> W> WidgetLike<Ctx, FnTag> for F {
type Widget = W;
fn add(self, ui: &mut Ui<Ctx>) -> WidgetId<W> {
let w = self(ui);
ui.add(w)
self(ui).add(ui)
}
}