From ccf0074b08ce835cf22e7d46153d1cb3f3d06d32 Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:23 +0100 Subject: fix(render): get aspect ratio from renderer --- stockton-types/src/session.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'stockton-types') diff --git a/stockton-types/src/session.rs b/stockton-types/src/session.rs index f3d4e50..5b91739 100644 --- a/stockton-types/src/session.rs +++ b/stockton-types/src/session.rs @@ -11,17 +11,11 @@ pub struct Session { } impl Session { - /// Create a new world from a level. /// The level can be any format, as long as it has the required features of a bsp. - pub fn new( - add_resources: R, - add_systems: S, - ) -> Session { + pub fn new(add_systems: S) -> Session { let world = World::default(); - let mut resources = Resources::default(); - add_resources(&mut resources); - + let resources = Resources::default(); let mut schedule = Schedule::builder(); add_systems(&mut schedule); let schedule = schedule.build(); -- cgit v1.2.3