pub struct Debug3DResource { /* private fields */ }Implementations§
Source§impl Debug3DResource
impl Debug3DResource
pub fn new() -> Self
pub fn add_line_strip(&mut self, points: Vec<Vec3>, color: Vec4)
pub fn add_line_loop(&mut self, points: Vec<Vec3>, color: Vec4)
pub fn add_line(&mut self, p0: Vec3, p1: Vec3, color: Vec4)
pub fn add_circle_xy( &mut self, center: Vec3, x_dir: Vec3, y_dir: Vec3, radius: f32, color: Vec4, segments: u32, )
pub fn normal_to_xy(normal: Vec3) -> (Vec3, Vec3)
pub fn add_circle( &mut self, center: Vec3, normal: Vec3, radius: f32, color: Vec4, segments: u32, )
pub fn add_sphere( &mut self, center: Vec3, radius: f32, color: Vec4, segments: u32, )
pub fn add_cone( &mut self, vertex: Vec3, base_center: Vec3, radius: f32, color: Vec4, segments: u32, )
pub fn add_aabb(&mut self, min: Vec3, max: Vec3, color: Vec4)
pub fn add_axis_aligned_grid(&mut self, step_distance: f32)
pub fn take_line_lists(&mut self) -> Vec<LineList3D>
pub fn clear(&mut self)
Auto Trait Implementations§
impl Freeze for Debug3DResource
impl RefUnwindSafe for Debug3DResource
impl Send for Debug3DResource
impl Sync for Debug3DResource
impl Unpin for Debug3DResource
impl UnwindSafe for Debug3DResource
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> 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>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<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>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> 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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.