finished moving out render_state
This commit is contained in:
1 parent
79813db3ba
commit
06dd015092
26 files changed
+496
-220
No files matched your search
+2
-2
@@ -19,10 +19,10 @@ impl Widget for Image {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn image<State: HasUi>(image: impl LoadableImage) -> impl WidgetFn<State, Image> {
|
||||
pub fn image<State: UiRsc>(image: impl LoadableImage) -> impl WidgetFn<State, Image> {
|
||||
let image = image.get_image().expect("Failed to load image");
|
||||
move |state| Image {
|
||||
handle: state.ui_mut().add_texture(image),
|
||||
handle: state.ui_mut().textures.add(image),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user