Struct obj::Obj[][src]

pub struct Obj<'a, P> where
    P: 'a + GenPolygon
{ pub position: Vec<[f32; 3]>, pub texture: Vec<[f32; 2]>, pub normal: Vec<[f32; 3]>, pub objects: Vec<Object<'a, P>>, pub material_libs: Vec<String>, pub path: PathBuf, }

Fields

Methods

impl<'a, P> Obj<'a, P> where
    P: GenPolygon
[src]

Loads the .mtl files referenced in the .obj file.

If it encounters an error for an .mtl, it appends its error to the returning Vec, and tries the rest.

The Result Err value format is a Vec, which items are tuples with first index being the the .mtl file and the second its corresponding error.

Auto Trait Implementations

impl<'a, P> Send for Obj<'a, P> where
    P: Send

impl<'a, P> Sync for Obj<'a, P> where
    P: Sync