Skip to content

Commit

Permalink
Book tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
tychedelia committed Jul 31, 2024
1 parent 7291b55 commit f92227c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guide/src/tutorials/draw/drawing-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fn model(app: &App) -> Model {
// Create a new window!
app.new_window().size(512, 512).view(view).build();
// Load the image from disk and upload it to a GPU texture
let texture = app.assets_mut().load("images/nature/nature_1.jpg");
let texture = app.asset_server().load("images/nature/nature_1.jpg");
Model { texture }
}
# fn view(_app: &App, _model: &Model) {
Expand All @@ -122,7 +122,7 @@ Finally, in our `view` function, we can draw the texture stored in our model wit
# // Create a new window!
# app.new_window().size(512, 512).view(view).build();
# // Load the image from disk and upload it to a GPU texture.
# let texture = app.assets_mut().load("images/nature/nature_1.jpg");
# let texture = app.asset_server().load("images/nature/nature_1.jpg");
# Model { texture }
# }
fn view(app: &App, model: &Model) {
Expand Down Expand Up @@ -155,7 +155,7 @@ A texture can be drawn at any location and any size desired within the frame. Le
# // Create a new window!
# app.new_window().size(512, 512).view(view).build();
# // Load the image from disk and upload it to a GPU texture.
# let texture = app.assets_mut().load("images/nature/nature_1.jpg");
# let texture = app.asset_server().load("images/nature/nature_1.jpg");
# Model { texture }
# }
fn view(app: &App, model: &Model) {
Expand Down

0 comments on commit f92227c

Please sign in to comment.