Struct lambda::render::vertex::VertexBuilder
source · Expand description
Construction for
Fields§
§position: [f32; 3]
§normal: [f32; 3]
§color: [f32; 3]
Implementations§
source§impl VertexBuilder
impl VertexBuilder
pub fn new() -> Self
sourcepub fn with_position(&mut self, position: [f32; 3]) -> &mut Self
pub fn with_position(&mut self, position: [f32; 3]) -> &mut Self
Set the position of the vertex.
sourcepub fn with_normal(&mut self, normal: [f32; 3]) -> &mut Self
pub fn with_normal(&mut self, normal: [f32; 3]) -> &mut Self
Set the normal of the vertex.
pub fn with_color(&mut self, color: [f32; 3]) -> &mut Self
pub fn build(&self) -> Vertex
Trait Implementations§
source§impl Clone for VertexBuilder
impl Clone for VertexBuilder
source§fn clone(&self) -> VertexBuilder
fn clone(&self) -> VertexBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more