multi texturing works
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user