Trait bevy::prelude::GizmoPrimitive2d
pub trait GizmoPrimitive2d<P>where
P: Primitive2d,{
type Output<'a>
where Self: 'a;
// Required method
fn primitive_2d(
&mut self,
primitive: P,
position: Vec2,
angle: f32,
color: impl Into<Color>
) -> Self::Output<'_>;
}
Expand description
A trait for rendering 2D geometric primitives (P
) with Gizmos
.
Required Associated Types§
type Output<'a>
where
Self: 'a
type Output<'a> where Self: 'a
The output of primitive_2d
. This is a builder to set non-default values.
Required Methods§
Object Safety§
This trait is not object safe.