Trait Vertex

Source
pub trait Vertex {
    // Required methods
    fn set_position(&mut self, _: [f32; 3]);
    fn set_texture_coords(&mut self, _: [f32; 2]);
    fn set_normal(&mut self, _: [f32; 3]);
}
Expand description

Implemented by vertex types.

Required Methods§

Source

fn set_position(&mut self, _: [f32; 3])

Sets position.

Source

fn set_texture_coords(&mut self, _: [f32; 2])

Sets texture coords.

Source

fn set_normal(&mut self, _: [f32; 3])

Sets normal.

Implementors§