multi texturing works

This commit is contained in:
2019-09-10 22:47:19 -07:00
parent 5f2092ef21
commit 73456dc58d
4 changed files with 24 additions and 16 deletions

View File

@@ -112,7 +112,7 @@ pub fn main() {
.expect("Can't find that kernel");
let funky_handle = processor.get_texture_handle(String::from("funky-bird.jpg")).unwrap();
let sfml_handle = processor.get_texture_handle(String::from("funky-bird.jpg")).unwrap();
let sfml_handle = processor.get_texture_handle(String::from("sfml.png")).unwrap();
let sprite3 = Sprite::new_with_texture((0.0, -0.5), (0.5, 0.5), funky_handle.clone());
let sprite4 = Sprite::new_with_texture((0.3, 0.5), (0.9, 0.9), sfml_handle.clone());