summaryrefslogtreecommitdiff
path: root/examples/bmp.rs
diff options
context:
space:
mode:
authorMicha White <botahamec@outlook.com>2022-10-12 12:42:49 -0400
committerMicha White <botahamec@outlook.com>2022-10-12 12:42:49 -0400
commitb15126ef266cc9e364e9fe155fd6941779249579 (patch)
tree1da9ef4e24b391ec86f5ad29545f789a63ed54fb /examples/bmp.rs
parent3c1822640f09d23c55a5e9a8fe4d131eb539d2f4 (diff)
Removed WgpuTextures
Diffstat (limited to 'examples/bmp.rs')
-rw-r--r--examples/bmp.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/bmp.rs b/examples/bmp.rs
index a384f7b..b8e4011 100644
--- a/examples/bmp.rs
+++ b/examples/bmp.rs
@@ -23,12 +23,13 @@ fn main() {
let mut renderer = Renderer::new(&config, &event_loop).unwrap();
let texture = renderer
- .texture_from_memory(texture, ImageFormat::Bmp)
+ .textures_mut()
+ .load_from_memory(texture, ImageFormat::Bmp)
.unwrap();
- let width = renderer.texture_width(texture).unwrap();
- let height = renderer.texture_height(texture).unwrap();
- let x = renderer.texture_x(texture).unwrap();
- let y = renderer.texture_y(texture).unwrap();
+ let width = renderer.textures().texture_width(texture).unwrap();
+ let height = renderer.textures().texture_height(texture).unwrap();
+ let x = renderer.textures().texture_x(texture).unwrap();
+ let y = renderer.textures().texture_y(texture).unwrap();
renderer.instances_mut().push_instance(Instance {
position: [-0.5, 0.0],