From 4b789a715cf7b42f5ae282b8218976fd577664be Mon Sep 17 00:00:00 2001 From: Micha White Date: Sun, 5 Feb 2023 10:28:43 -0500 Subject: Move texture atlas out of alligator_resources --- alligator_render/src/renderer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alligator_render/src/renderer.rs') 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, ) -> Result { // build the window let event_loop = EventLoop::new(); -- cgit v1.2.3