Trait bevy_gizmos::primitives::dim2::GizmoPrimitive2d
source · pub trait GizmoPrimitive2d<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§
Required Methods§
Object Safety§
This trait is not object safe.