pub trait GizmoPrimitive2d<P: Primitive2d> {
type Output<'a>
where Self: 'a;
// Required method
fn primitive_2d(
&mut self,
primitive: &P,
isometry: impl Into<Isometry2d>,
color: impl Into<Color>,
) -> Self::Output<'_>;
}
Expand description
A trait for rendering 2D geometric primitives (P
) with Gizmos
.
Required Associated Types§
Required Methods§
sourcefn primitive_2d(
&mut self,
primitive: &P,
isometry: impl Into<Isometry2d>,
color: impl Into<Color>,
) -> Self::Output<'_>
fn primitive_2d( &mut self, primitive: &P, isometry: impl Into<Isometry2d>, color: impl Into<Color>, ) -> Self::Output<'_>
Renders a 2D primitive with its associated details.
Object Safety§
This trait is not object safe.