mirror of
https://codeberg.org/icewind/vmdl.git
synced 2026-06-03 16:44:11 +02:00
extract loader into crate
This commit is contained in:
parent
585a485031
commit
d330108905
7 changed files with 28 additions and 135 deletions
|
|
@ -1,8 +1,6 @@
|
|||
mod convert;
|
||||
#[path = "../common/error.rs"]
|
||||
mod error;
|
||||
#[path = "../common/loader.rs"]
|
||||
mod loader;
|
||||
#[path = "../common/materials.rs"]
|
||||
mod material;
|
||||
|
||||
|
|
@ -11,7 +9,6 @@ use gltf_json as json;
|
|||
use std::fs;
|
||||
|
||||
use crate::convert::{push_material, push_model};
|
||||
use crate::loader::Loader;
|
||||
use crate::material::load_material_fallback;
|
||||
use clap::Parser;
|
||||
pub use error::Error;
|
||||
|
|
@ -20,6 +17,7 @@ use main_error::MainResult;
|
|||
use std::borrow::Cow;
|
||||
use std::collections::BTreeSet;
|
||||
use std::path::PathBuf;
|
||||
use tf_asset_loader::Loader;
|
||||
use vmdl::Model;
|
||||
|
||||
fn align_to_multiple_of_four(n: &mut u32) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue