Skip to content

Commit

Permalink
Add a note about the assets_path method
Browse files Browse the repository at this point in the history
  • Loading branch information
jozanza committed Sep 2, 2020
1 parent 70b7722 commit d3044ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/src/tutorials/draw/drawing-images.md
Expand Up @@ -73,7 +73,7 @@ struct Model {
# }
```

Next, we'll need to create a GPU texture to initialize the struct with. We can accomplish this by loading a texture from an image file after we create the window in our `model` function.
Next, we'll need to create a GPU texture to initialize the struct with. We can accomplish this by loading a texture from an image file after we create the window in our `model` function. We will let nannou find the assets directory for us using the app's [`assets_path()`](https://docs.rs/nannou/0.14.1/nannou/app/struct.App.html#method.assets_path) method, so we only need to spell out the image path from the root of that directory.

```rust,no_run
# #![allow(unreachable_code, unused_variables, dead_code)]
Expand Down

0 comments on commit d3044ee

Please sign in to comment.