feat: implement MeshLoader
This loader abstracts mesh loading logic into a series of individual file handlers. Each handler is chosen based on the extension of the file to be loaded.
This commit is contained in:
1 parent
b7e31732e6
commit
ba9b677545
9 files changed
+157
-48
No files matched your search
@@ -0,0 +1,11 @@
|
||||
use std::path::Path;
|
||||
use anyhow::Result;
|
||||
use crate::loaders::mesh_loader::{MeshFileLoader, MeshInfo};
|
||||
|
||||
pub struct GltfLoader;
|
||||
|
||||
impl MeshFileLoader for GltfLoader {
|
||||
fn load_mesh(&self, path: &Path) -> Result<MeshInfo> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user