From 3c1822640f09d23c55a5e9a8fe4d131eb539d2f4 Mon Sep 17 00:00:00 2001 From: Micha White Date: Wed, 12 Oct 2022 12:06:37 -0400 Subject: Move out instance logic --- examples/bmp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/bmp.rs') diff --git a/examples/bmp.rs b/examples/bmp.rs index 98561ba..a384f7b 100644 --- a/examples/bmp.rs +++ b/examples/bmp.rs @@ -30,7 +30,7 @@ fn main() { let x = renderer.texture_x(texture).unwrap(); let y = renderer.texture_y(texture).unwrap(); - renderer.push_instance(Instance { + renderer.instances_mut().push_instance(Instance { position: [-0.5, 0.0], size: [0.75; 2], texture_size: [width, height], @@ -38,7 +38,7 @@ fn main() { ..Default::default() }); - renderer.push_instance(Instance { + renderer.instances_mut().push_instance(Instance { position: [0.5, 0.0], size: [0.75; 2], texture_size: [width, height], -- cgit v1.2.3