diff --git a/src/main.rs b/src/main.rs index b7e63fde..d3157ce6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -58,7 +58,7 @@ impl<'t> Edge<'t> { entities.push(entity); } - let mut shader = Shader::from_file(None, None, Some("resources/edge.frag")).unwrap(); + let mut shader = Shader::from_file(None, None, Some("resources/shaders/edge.frag")).unwrap(); shader.set_uniform_current_texture("texture"); Self { @@ -135,7 +135,7 @@ fn surrounding_pixels(x: u32, y: u32, img: &DynamicImage) -> Vec fn main() { - let mut img = image::open("resources/funky-bird.jpg").unwrap(); + let mut img = image::open("resources/images/funky-bird.jpg").unwrap(); let xy = img.dimensions(); println!("Starting"); @@ -159,12 +159,12 @@ fn main() { let mut input = Input::new(); //========================================== - let font = Font::from_file("resources/sansation.ttf").unwrap(); + let font = Font::from_file("resources/fonts/sansation.ttf").unwrap(); - let mut bg_texture = Texture::from_file("resources/sfml.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/devices.png").unwrap(); + let mut entity_texture = Texture::from_file("resources/images/devices.png").unwrap(); entity_texture.set_smooth(true); let mut effects: [Box; 1] = [ @@ -172,7 +172,7 @@ fn main() { ]; let mut current = 0; - let text_bg_texture = Texture::from_file("resources/text-background.png").unwrap(); + let text_bg_texture = Texture::from_file("resources/images/text-background.png").unwrap(); let mut text_bg = Sprite::with_texture(&text_bg_texture); text_bg.set_position((0., 520.)); text_bg.set_color(&Color::rgba(255, 255, 255, 200));