From 6698c04b5881fa5aac0950d9a600bde38aae70f1 Mon Sep 17 00:00:00 2001 From: mitchellhansen Date: Tue, 18 Jun 2019 00:16:37 -0700 Subject: [PATCH] just gonna do a file read --- src/main.rs | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/main.rs b/src/main.rs index 30319a62..36cc0251 100644 --- a/src/main.rs +++ b/src/main.rs @@ -222,10 +222,7 @@ fn main() { } } - fs::remove_file("output.jpg"); - img.save("output14.jpg"); - - return; + img.save("output.png"); println!("Starting"); @@ -242,9 +239,9 @@ fn main() { //========================================== let font = Font::from_file("resources/fonts/sansation.ttf").unwrap(); - - let mut bg_texture = Texture::from_file("resources/images/sfml.png").unwrap(); - bg_texture.set_smooth(true); + let mut bg_texture = Texture::from_file("output.png").unwrap(); + //let mut bg_texture = Texture::from_file("resources/images/sfml.png").unwrap(); + //bg_texture.set_smooth(true); let mut entity_texture = Texture::from_file("resources/images/devices.png").unwrap(); entity_texture.set_smooth(true); @@ -310,9 +307,10 @@ fn main() { window.clear(&Color::BLACK); - // window.draw(effects[current].as_drawable()); + window.draw(effects[current].as_drawable()); window.draw(&slider); + window.display(); }