Function tobj::load_obj[][src]

pub fn load_obj<P>(file_name: P, load_options: &LoadOptions) -> LoadResult where
    P: AsRef<Path> + Debug
Expand description

Load the various objects specified in the OBJ file and any associated MTL file.

Returns a pair of Vecs containing the loaded models and materials from the file.

Arguments

  • load_options – Governs on-the-fly processing of the mesh during loading. See LoadOptions for more information.