summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-08-09 18:19:13 -0700
committerIrene Knapp <ireneista@irenes.space>2026-08-09 18:19:13 -0700
commit677b697eb18b9abb252eacff320aa48314075a0e (patch)
tree4da0f8013b4ac5b762f293ac5ee2d8e8fd6dc3dc /src/main.rs
parent1216c5f3dd1f902fb545db875e2b88f50d24e580 (diff)
change the interface to load_obj()
now it matches load_png() in a sort of abstract, high-level way

this is meant to make it easier to abstract over assets

Force-Push: yes
Change-Id: Icddc6180e0c78c29bebbd47d84bb381c4fd0c3ca
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 819ce40..b4f7970 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -75,8 +75,8 @@ impl Surreality {
                                                 enable_anisotropy, mip_count)?;
       let mut render = Render::new(&permanent, &for_reinit, &window_dressing,
                                    &texture)?;
-      let (vertices, indices) = load_obj()?;
-      render.set_model(Model::new(vertices, indices, &permanent)?);
+      let model = load_obj(&permanent)?;
+      render.set_model(model);
 
       *self.window_dressing.get_mut() = Some(window_dressing);
       *self.render.get_mut() = Some(render);