pub struct GridBuilder3d<'a, Config, Clear>{ /* private fields */ }Expand description
A builder returned by GizmoBuffer::grid_3d
Implementations§
Source§impl<Config, Clear> GridBuilder3d<'_, Config, Clear>
impl<Config, Clear> GridBuilder3d<'_, Config, Clear>
Sourcepub fn skew_x(self, skew: f32) -> Self
pub fn skew_x(self, skew: f32) -> Self
Skews the grid by tan(skew) in the x direction.
skew is in radians
Sourcepub fn skew_y(self, skew: f32) -> Self
pub fn skew_y(self, skew: f32) -> Self
Skews the grid by tan(skew) in the y direction.
skew is in radians
Sourcepub fn skew_z(self, skew: f32) -> Self
pub fn skew_z(self, skew: f32) -> Self
Skews the grid by tan(skew) in the z direction.
skew is in radians
Sourcepub fn skew(self, skew: Vec3) -> Self
pub fn skew(self, skew: Vec3) -> Self
Skews the grid by tan(skew) in the x, y and z directions.
skew is in radians
Sourcepub fn outer_edges_x(self) -> Self
pub fn outer_edges_x(self) -> Self
Declare that the outer edges of the grid parallel to the x axis should be drawn. By default, the outer edges will not be drawn.
Sourcepub fn outer_edges_y(self) -> Self
pub fn outer_edges_y(self) -> Self
Declare that the outer edges of the grid parallel to the y axis should be drawn. By default, the outer edges will not be drawn.
Sourcepub fn outer_edges_z(self) -> Self
pub fn outer_edges_z(self) -> Self
Declare that the outer edges of the grid parallel to the z axis should be drawn. By default, the outer edges will not be drawn.
Sourcepub fn outer_edges(self) -> Self
pub fn outer_edges(self) -> Self
Declare that all outer edges of the grid should be drawn. By default, the outer edges will not be drawn.
Trait Implementations§
Source§impl<Config, Clear> Drop for GridBuilder3d<'_, Config, Clear>
impl<Config, Clear> Drop for GridBuilder3d<'_, Config, Clear>
Source§fn drop(&mut self)
fn drop(&mut self)
Draws a grid, by drawing lines with the stored GizmoBuffer
Auto Trait Implementations§
impl<'a, Config, Clear> Freeze for GridBuilder3d<'a, Config, Clear>
impl<'a, Config, Clear> RefUnwindSafe for GridBuilder3d<'a, Config, Clear>where
Config: RefUnwindSafe,
Clear: RefUnwindSafe,
impl<'a, Config, Clear> Send for GridBuilder3d<'a, Config, Clear>
impl<'a, Config, Clear> Sync for GridBuilder3d<'a, Config, Clear>
impl<'a, Config, Clear> Unpin for GridBuilder3d<'a, Config, Clear>
impl<'a, Config, Clear> !UnwindSafe for GridBuilder3d<'a, Config, Clear>
Blanket Implementations§
Source§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
Source§fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
T ShaderType for self. When used in AsBindGroup
derives, it is safe to assume that all images in self exist.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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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