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:05:15 -0700
committerIrene Knapp <ireneista@irenes.space>2026-08-09 18:05:15 -0700
commit1216c5f3dd1f902fb545db875e2b88f50d24e580 (patch)
treef367588e57d43b391c0c21642886e4aa34fe1b4a /src/main.rs
parentd672e147db0df6186c528262367770dcde9d75fc (diff)
move PNG-specific code to a new module files::png
this mirrors files::obj

Force-Push: yes
Change-Id: I17ccae0b54b49453100873ba707ee36406b96057
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 3e8fb0b..819ce40 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -7,6 +7,7 @@ use crate::graphics::window_dressing::{
 };
 use crate::linear_algebra::{ Vec3, Mat4, Transformation };
 use crate::files::obj::load_obj;
+use crate::files::png::load_png;
 use crate::shader_data::UniformBlock;
 
 use std::cell::RefCell;
@@ -67,7 +68,7 @@ impl Surreality {
     let (permanent, for_reinit, enable_anisotropy, enable_swapchain)
         = Permanent::new(event_loop)?;
 
-    let (texture, mip_count) = Texture::new(&permanent)?;
+    let (texture, mip_count) = load_png(&permanent)?;
 
     if enable_swapchain.0 {
       let window_dressing = WindowDressing::new(&permanent, &for_reinit,