pub fn new(res: &Resources) -> Result<Self> {
        let renderer = UIRenderer::new(res)?;
        let preset = Preset::Plain;
        let model_files = res.list_models();
        Ok(Self {
            renderer,
            preset,
            model_files,
        })
    }
/// Initialize the user interface and it's rendering code.
Initialize the user interface and it's rendering code.
Initialize the user interface and it ' s rendering code .
pub fn new(res: &Resources) -> Result<Self> {
        let renderer = UIRenderer::new(res)?;
        let preset = Preset::Plain;
        let model_files = res.list_models();
        Ok(Self {
            renderer,
            preset,
            model_files,
        })
    }
pub fn new ( res : & Resources ) -> Result < Self > { let renderer = UIRenderer :: new ( res ) ? ; let preset = Preset :: Plain ; let model_files = res . list_models ( ) ; Ok ( Self { renderer , preset , model_files , } ) }
Initialize the user interface and it's rendering code.
Initialize the user interface and it ' s rendering code .
res
&Resources
res
&Resources