wip: week of changes

This commit is contained in:
reo 2025-08-16 21:24:10 +03:00
parent 03e8f34dba
commit 176ea52ab0
20 changed files with 171 additions and 47 deletions

View file

@ -0,0 +1,14 @@
use std::cell::RefCell;
use std::path::Path;
use std::rc::Rc;
pub type ModelManagerRef = Rc<RefCell<Box<dyn ModelManager>>>;
/// The asset manager trait of Raidillon.
pub trait ModelManager {
/// Loads a gltf model to VRAM.
fn load_gltf(&mut self, path: &Path);
/// Unloads the loaded model from VRAM.
fn unload_model(&mut self, path: &Path);
}