[−][src]Struct amethyst_rendy::debug_drawing::DebugLines
Resource that stores non-persistent debug lines to be rendered in DebugLinesPass draw pass. The vector is automatically cleared after being rendered.
Methods
impl DebugLines
[src]
pub fn new() -> DebugLines
[src]
Creates a new debug lines component with an empty DebugLine vector.
pub fn draw_direction(
&mut self,
position: Point3<f32>,
direction: Vector3<f32>,
color: Srgba
)
[src]
&mut self,
position: Point3<f32>,
direction: Vector3<f32>,
color: Srgba
)
Submits a line to be rendered by giving a position and a direction.
pub fn draw_gradient_line(
&mut self,
start: Point3<f32>,
end: Point3<f32>,
start_color: Srgba,
end_color: Srgba
)
[src]
&mut self,
start: Point3<f32>,
end: Point3<f32>,
start_color: Srgba,
end_color: Srgba
)
Submits a line to be rendered by giving a start and an end position with separate start and end colors.
pub fn draw_line(&mut self, start: Point3<f32>, end: Point3<f32>, color: Srgba)
[src]
Submits a line to be rendered by giving a start and an end position.
pub fn draw_rectangle(
&mut self,
min: Point2<f32>,
max: Point2<f32>,
z: f32,
color: Srgba
)
[src]
&mut self,
min: Point2<f32>,
max: Point2<f32>,
z: f32,
color: Srgba
)
Submits multiple lines that form a rectangle to be rendered by giving a Z coordinate, a min and a max position.
This rectangle is aligned to the XY plane.
pub fn draw_rotated_rectangle(
&mut self,
min: Point2<f32>,
max: Point2<f32>,
z: f32,
rotation: UnitQuaternion<f32>,
color: Srgba
)
[src]
&mut self,
min: Point2<f32>,
max: Point2<f32>,
z: f32,
rotation: UnitQuaternion<f32>,
color: Srgba
)
Submits multiple lines that form a rotated rectangle to be rendered by giving a Z coordinate, a rotation, a min and a max position.
pub fn draw_box(&mut self, min: Point3<f32>, max: Point3<f32>, color: Srgba)
[src]
Submits multiple lines that form a box to be rendered by giving a min and a max position.
This box is an axis aligned box.
pub fn draw_rotated_box(
&mut self,
min: Point3<f32>,
max: Point3<f32>,
rotation: UnitQuaternion<f32>,
color: Srgba
)
[src]
&mut self,
min: Point3<f32>,
max: Point3<f32>,
rotation: UnitQuaternion<f32>,
color: Srgba
)
Submits multiple lines that form a rotated box to be rendered by giving a rotation, a min and a max position.
This box is an axis aligned box.
pub fn draw_circle(
&mut self,
center: Point3<f32>,
radius: f32,
points: u32,
color: Srgba
)
[src]
&mut self,
center: Point3<f32>,
radius: f32,
points: u32,
color: Srgba
)
Submits multiple lines that form a circle to be rendered by giving a center, a radius and an amount of points.
This circle is aligned to the XY plane.
pub fn draw_rotated_circle(
&mut self,
center: Point3<f32>,
radius: f32,
points: u32,
rotation: UnitQuaternion<f32>,
color: Srgba
)
[src]
&mut self,
center: Point3<f32>,
radius: f32,
points: u32,
rotation: UnitQuaternion<f32>,
color: Srgba
)
Submits multiple lines that form a rotated circle to be rendered by giving a center, a radius, an amount of points and a rotation.
pub fn draw_sphere(
&mut self,
center: Point3<f32>,
radius: f32,
horizontal_points: u32,
vertical_points: u32,
color: Srgba
)
[src]
&mut self,
center: Point3<f32>,
radius: f32,
horizontal_points: u32,
vertical_points: u32,
color: Srgba
)
Submits multiple lines that form a sphere to be rendered by giving a center, a radius, an amount of vertical points and an amount of horizontal points.
pub fn draw_cylinder(
&mut self,
center: Point3<f32>,
radius: f32,
height: f32,
points: u32,
color: Srgba
)
[src]
&mut self,
center: Point3<f32>,
radius: f32,
height: f32,
points: u32,
color: Srgba
)
Submits multiple lines that form a cylinder to be rendered by giving a center, a radius, a height and an amount of points.
This cylinder is aligned to the y axis.
pub fn draw_rotated_cylinder(
&mut self,
center: Point3<f32>,
radius: f32,
height: f32,
points: u32,
rotation: UnitQuaternion<f32>,
color: Srgba
)
[src]
&mut self,
center: Point3<f32>,
radius: f32,
height: f32,
points: u32,
rotation: UnitQuaternion<f32>,
color: Srgba
)
Adds multiple lines that form a rotated cylinder to be rendered by giving a center, a radius, a height, an amount of points and a rotation.
Trait Implementations
Auto Trait Implementations
impl Unpin for DebugLines
impl Sync for DebugLines
impl Send for DebugLines
impl UnwindSafe for DebugLines
impl RefUnwindSafe for DebugLines
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
Convert the source color to the destination color using the bradford method by default Read more
impl<T> SetParameter for T
[src]
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
[src]
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> Supports<T> for T
[src]
impl<T> Erased for T
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> Any for T where
T: Any,
[src]
T: Any,
fn get_type_id(&self) -> TypeId
[src]
impl<T> TryDefault for T where
T: Default,
[src]
T: Default,
fn try_default() -> Result<T, String>
[src]
fn unwrap_default() -> Self
[src]
Calls try_default
and panics on an error case.
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,