[][src]Trait obj::FromRawVertex

pub trait FromRawVertex<I>: Sized {
    fn process(
        vertices: Vec<(f32, f32, f32, f32)>,
        normals: Vec<(f32, f32, f32)>,
        tex_coords: Vec<(f32, f32, f32)>,
        polygons: Vec<Polygon>
    ) -> ObjResult<(Vec<Self>, Vec<I>)>; }

Conversion from RawObj's raw data.

Required methods

fn process(
    vertices: Vec<(f32, f32, f32, f32)>,
    normals: Vec<(f32, f32, f32)>,
    tex_coords: Vec<(f32, f32, f32)>,
    polygons: Vec<Polygon>
) -> ObjResult<(Vec<Self>, Vec<I>)>

Build vertex and index buffer from raw object data.

Loading content...

Implementors

impl<I: FromPrimitive + Copy> FromRawVertex<I> for TexturedVertex[src]

impl<I: FromPrimitive + Copy> FromRawVertex<I> for Vertex[src]

impl<I: FromPrimitive> FromRawVertex<I> for Position[src]

Loading content...