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(); }