From 9c9d8f8f8fb98773ede9f0e49f522b9d098e46ec Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 23 Oct 2023 19:30:13 -0700 Subject: [PATCH] rename setup_context to setup --- src/{setup_context.rs => setup.rs} | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename src/{setup_context.rs => setup.rs} (96%) diff --git a/src/setup_context.rs b/src/setup.rs similarity index 96% rename from src/setup_context.rs rename to src/setup.rs index d4cc6a1..ac5fadc 100644 --- a/src/setup_context.rs +++ b/src/setup.rs @@ -204,14 +204,14 @@ pub fn setup(title:&str)->SetupContextSetup{ SetupContextSetup{ window, event_loop, - partial_graphics_context:partial_4, + partial_context:partial_4, } } struct SetupContextSetup{ window:winit::window::Window, event_loop:winit::event_loop::EventLoop<()>, - partial_graphics_context:SetupContextPartial4, + partial_context:SetupContextPartial4, } impl SetupContextSetup{ @@ -221,16 +221,16 @@ impl SetupContextSetup{ ( self.window, self.event_loop, - self.partial_graphics_context.configure_surface(&size), + self.partial_context.configure_surface(&size), ) } pub fn start(self,mut run:crate::run::RunState){ - let (window,event_loop,graphics_context)=self.into_split(); + let (window,event_loop,setup_context)=self.into_split(); - //dedicated thread to pigh request redraw back and resize the window doesn't seem logical + //dedicated thread to ping request redraw back and resize the window doesn't seem logical //physics and graphics render thread - let run_thread=run.into_worker(graphics_context); + let run_thread=run.into_worker(setup_context); println!("Entering render loop..."); let root_time=std::time::Instant::now();