just gonna do a file read

master
mitchellhansen 6 years ago
parent e8d94e4ba7
commit 6698c04b58

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

Loading…
Cancel
Save