fiddling with text rendering
This commit is contained in:
@@ -90,7 +90,7 @@ pub fn main() {
|
||||
let image_data = load_raw(String::from("funky-bird.jpg"));
|
||||
let image_dimensions_f = ((image_data.1).0 as f32, (image_data.1).1 as f32);
|
||||
let image_dimensions_u = image_data.1;
|
||||
let compu_sprite1 = CompuSprite::new((0.0, -0.5), (0.4, 0.4), 3, image_dimensions_f,
|
||||
let compu_sprite1 = CompuSprite::new((0.0, -0.5), (0.4, 0.4), 0, image_dimensions_f,
|
||||
// This swap image needs to match the size of the compute
|
||||
processor.new_swap_image(image_dimensions_u));
|
||||
|
||||
@@ -102,8 +102,8 @@ pub fn main() {
|
||||
let funky_handle = processor.get_texture_handle(String::from("funky-bird.jpg")).unwrap();
|
||||
let sfml_handle = processor.get_texture_handle(String::from("sfml.png")).unwrap();
|
||||
|
||||
let funky_sprite = Sprite::new_with_texture((0.0, -0.5), (0.5, 0.5), 2, funky_handle.clone());
|
||||
let sfml_sprite = Sprite::new_with_texture((0.0, -0.5), (0.5, 0.5), 1, sfml_handle.clone());
|
||||
let funky_sprite = Sprite::new_with_texture((0.0, -0.5), (0.5, 0.5), 0, funky_handle.clone());
|
||||
let sfml_sprite = Sprite::new_with_texture((0.0, -0.5), (0.5, 0.5), 0, sfml_handle.clone());
|
||||
|
||||
|
||||
drop(q2);
|
||||
|
||||
Reference in New Issue
Block a user