pub struct MeshBuilder { /* private fields */ }Expand description
Builder for creating and configuring 3D mesh objects
Implementations§
Source§impl MeshBuilder
impl MeshBuilder
Sourcepub fn with_positions(self, positions: Vec<f32>) -> Self
pub fn with_positions(self, positions: Vec<f32>) -> Self
Set the positions for the mesh
Sourcepub fn with_indices(self, indices: Vec<u16>) -> Self
pub fn with_indices(self, indices: Vec<u16>) -> Self
Set the indices for the mesh
Sourcepub fn with_normals(self, normals: Vec<f32>) -> Self
pub fn with_normals(self, normals: Vec<f32>) -> Self
Set the normals for the mesh
Sourcepub fn with_texcoords(self, texcoords: Vec<f32>) -> Self
pub fn with_texcoords(self, texcoords: Vec<f32>) -> Self
Set a single set of texture coordinates for the mesh
Sourcepub fn with_multiple_texcoords(self, texcoord_sets: Vec<Vec<f32>>) -> Self
pub fn with_multiple_texcoords(self, texcoord_sets: Vec<Vec<f32>>) -> Self
Set multiple sets of texture coordinates for the mesh
Sourcepub fn with_material(self, material: usize) -> Self
pub fn with_material(self, material: usize) -> Self
Set the material index for the mesh
Auto Trait Implementations§
impl Freeze for MeshBuilder
impl !RefUnwindSafe for MeshBuilder
impl !Send for MeshBuilder
impl !Sync for MeshBuilder
impl Unpin for MeshBuilder
impl !UnwindSafe for MeshBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more