Trait FromRawVertex

Source
pub trait FromRawVertex<I>: Sized {
    // Required method
    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>)>;
}
Expand description

Conversion from RawObj’s raw data.

Required Methods§

Source

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§