diff options
| author | Micha White <botahamec@outlook.com> | 2023-02-05 10:28:43 -0500 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2023-02-05 10:28:43 -0500 |
| commit | 4b789a715cf7b42f5ae282b8218976fd577664be (patch) | |
| tree | 91b17110d2928f56e146e3308cbdd944bbaf5c69 /alligator_render/src/renderer.rs | |
| parent | 9fd7d6689d5d90679e4b0c12e463ef4e2f8bf515 (diff) | |
Move texture atlas out of alligator_resources
Diffstat (limited to 'alligator_render/src/renderer.rs')
| -rw-r--r-- | alligator_render/src/renderer.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alligator_render/src/renderer.rs b/alligator_render/src/renderer.rs index f448119..fdd8c34 100644 --- a/alligator_render/src/renderer.rs +++ b/alligator_render/src/renderer.rs @@ -1,5 +1,5 @@ -use std::convert::TryInto; use std::num::NonZeroU32; +use std::{convert::TryInto, sync::Arc}; use crate::{ vertex::SQUARE, Camera, Instance, InstanceBuffer, RenderWindowConfig, TextureAtlas, Vertex, @@ -150,7 +150,7 @@ impl Renderer { // TODO this function needs to be smaller pub fn new( config: &RenderWindowConfig, - textures: TextureManager, + textures: Arc<TextureManager>, ) -> Result<Self, NewRendererError> { // build the window let event_loop = EventLoop::new(); |
