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§
Sourcefn set_position(&mut self, _: [f32; 3])
fn set_position(&mut self, _: [f32; 3])
Sets position.
Sourcefn set_texture_coords(&mut self, _: [f32; 2])
fn set_texture_coords(&mut self, _: [f32; 2])
Sets texture coords.
Sourcefn set_normal(&mut self, _: [f32; 3])
fn set_normal(&mut self, _: [f32; 3])
Sets normal.