update references
This commit is contained in:
12
src/main.rs
12
src/main.rs
@@ -58,7 +58,7 @@ impl<'t> Edge<'t> {
|
|||||||
entities.push(entity);
|
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");
|
shader.set_uniform_current_texture("texture");
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
@@ -135,7 +135,7 @@ fn surrounding_pixels(x: u32, y: u32, img: &DynamicImage) -> Vec<image::Rgba<u8>
|
|||||||
|
|
||||||
fn main() {
|
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();
|
let xy = img.dimensions();
|
||||||
|
|
||||||
println!("Starting");
|
println!("Starting");
|
||||||
@@ -159,12 +159,12 @@ fn main() {
|
|||||||
let mut input = Input::new();
|
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);
|
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);
|
entity_texture.set_smooth(true);
|
||||||
|
|
||||||
let mut effects: [Box<Effect>; 1] = [
|
let mut effects: [Box<Effect>; 1] = [
|
||||||
@@ -172,7 +172,7 @@ fn main() {
|
|||||||
];
|
];
|
||||||
let mut current = 0;
|
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);
|
let mut text_bg = Sprite::with_texture(&text_bg_texture);
|
||||||
text_bg.set_position((0., 520.));
|
text_bg.set_position((0., 520.));
|
||||||
text_bg.set_color(&Color::rgba(255, 255, 255, 200));
|
text_bg.set_color(&Color::rgba(255, 255, 255, 200));
|
||||||
|
|||||||
Reference in New Issue
Block a user