summaryrefslogtreecommitdiff
path: root/alligator_render/src/renderer.rs
diff options
context:
space:
mode:
authorMicha White <botahamec@outlook.com>2023-02-05 10:28:43 -0500
committerMicha White <botahamec@outlook.com>2023-02-05 10:28:43 -0500
commit4b789a715cf7b42f5ae282b8218976fd577664be (patch)
tree91b17110d2928f56e146e3308cbdd944bbaf5c69 /alligator_render/src/renderer.rs
parent9fd7d6689d5d90679e4b0c12e463ef4e2f8bf515 (diff)
Move texture atlas out of alligator_resources
Diffstat (limited to 'alligator_render/src/renderer.rs')
-rw-r--r--alligator_render/src/renderer.rs4
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();