pub struct VertexBuilder {
pub position: [f32; 3],
pub normal: [f32; 3],
pub color: [f32; 3],
}
Expand description
Construction for
Fields§
§position: [f32; 3]
§normal: [f32; 3]
§color: [f32; 3]
Implementations§
Source§impl VertexBuilder
impl VertexBuilder
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.
Sourcepub fn with_color(&mut self, color: [f32; 3]) -> &mut Self
pub fn with_color(&mut self, color: [f32; 3]) -> &mut Self
Set the color of the 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 moreSource§impl Debug for VertexBuilder
impl Debug for VertexBuilder
impl Copy for VertexBuilder
Auto Trait Implementations§
impl Freeze for VertexBuilder
impl RefUnwindSafe for VertexBuilder
impl Send for VertexBuilder
impl Sync for VertexBuilder
impl Unpin for VertexBuilder
impl UnwindSafe for VertexBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more