diff options
| author | Irene Knapp <ireneista@irenes.space> | 2026-08-09 20:09:35 -0700 |
|---|---|---|
| committer | Irene Knapp <ireneista@irenes.space> | 2026-08-09 20:23:13 -0700 |
| commit | bbe9d5993bb922ad6b33a21c3557143cecaf960d (patch) | |
| tree | 387488a0a6b35aa5ba1fef1adcdc400d0f4935b6 /src/files/obj.rs | |
| parent | 677b697eb18b9abb252eacff320aa48314075a0e (diff) | |
abstract over bundled assets
yay build script stuff :) Force-Push: yes Change-Id: I694651febb02f42dac904f0dfbf4089c33ef937e
Diffstat (limited to 'src/files/obj.rs')
| -rw-r--r-- | src/files/obj.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/files/obj.rs b/src/files/obj.rs index af2ce03..3ccc2ec 100644 --- a/src/files/obj.rs +++ b/src/files/obj.rs @@ -9,9 +9,7 @@ use std::io::Cursor; use tobj::{ load_obj_buf, LoadOptions }; -pub fn load_obj(permanent: &Permanent) -> Result<Model> { - let obj = include_bytes!("../../models/teapot.obj"); - +pub fn load_obj(obj: &[u8], permanent: &Permanent) -> Result<Model> { let load_options = LoadOptions { single_index: true, triangulate: true, |