From 1216c5f3dd1f902fb545db875e2b88f50d24e580 Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Sun, 9 Aug 2026 18:05:15 -0700 Subject: move PNG-specific code to a new module files::png this mirrors files::obj Force-Push: yes Change-Id: I17ccae0b54b49453100873ba707ee36406b96057 --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.rs') 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, -- cgit 1.4.1