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/examples/black.rs | |
| parent | 9fd7d6689d5d90679e4b0c12e463ef4e2f8bf515 (diff) | |
Move texture atlas out of alligator_resources
Diffstat (limited to 'alligator_render/examples/black.rs')
| -rw-r--r-- | alligator_render/examples/black.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alligator_render/examples/black.rs b/alligator_render/examples/black.rs index 198eef2..655cbde 100644 --- a/alligator_render/examples/black.rs +++ b/alligator_render/examples/black.rs @@ -1,5 +1,7 @@ #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] +use std::sync::Arc; + use alligator_render::{RenderWindowConfig, Renderer}; use alligator_resources::texture::{TextureManager, TextureManagerConfig}; @@ -19,11 +21,9 @@ fn main() { let texture_config = TextureManagerConfig { initial_capacity: 0, max_size: 0, - atlas_width: 1, - atlas_height: 1, }; - let texture_manager = TextureManager::new(&texture_config); + let texture_manager = Arc::new(TextureManager::new(&texture_config)); let renderer = Renderer::new(&render_config, texture_manager).unwrap(); println!("Startup time: {:?}", start.elapsed()); |
