pub trait GizmoPrimitive3d<P>
where P: Primitive3d,
{ type Output<'a> where Self: 'a; // Required method fn primitive_3d( &mut self, primitive: P, position: Vec3, rotation: Quat, color: Color ) -> Self::Output<'_>; }
Expand description

A trait for rendering 3D geometric primitives (P) with Gizmos.

Required Associated Types§

source

type Output<'a> where Self: 'a

The output of primitive_3d. This is a builder to set non-default values.

Required Methods§

source

fn primitive_3d( &mut self, primitive: P, position: Vec3, rotation: Quat, color: Color ) -> Self::Output<'_>

Renders a 3D primitive with its associated details.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'w, 's, T> GizmoPrimitive3d<BoxedPolyline3d> for Gizmos<'w, 's, T>

§

type Output<'a> = () where Gizmos<'w, 's, T>: 'a

source§

impl<'w, 's, T> GizmoPrimitive3d<Capsule3d> for Gizmos<'w, 's, T>

§

type Output<'a> = Capsule3dBuilder<'a, 'w, 's, T> where Gizmos<'w, 's, T>: 'a

source§

impl<'w, 's, T> GizmoPrimitive3d<Cone> for Gizmos<'w, 's, T>

§

type Output<'a> = Cone3dBuilder<'a, 'w, 's, T> where Gizmos<'w, 's, T>: 'a

source§

impl<'w, 's, T> GizmoPrimitive3d<ConicalFrustum> for Gizmos<'w, 's, T>

§

type Output<'a> = ConicalFrustum3dBuilder<'a, 'w, 's, T> where Gizmos<'w, 's, T>: 'a

source§

impl<'w, 's, T> GizmoPrimitive3d<Cuboid> for Gizmos<'w, 's, T>

§

type Output<'a> = () where Gizmos<'w, 's, T>: 'a

source§

impl<'w, 's, T> GizmoPrimitive3d<Cylinder> for Gizmos<'w, 's, T>

§

type Output<'a> = Cylinder3dBuilder<'a, 'w, 's, T> where Gizmos<'w, 's, T>: 'a

source§

impl<'w, 's, T> GizmoPrimitive3d<Direction3d> for Gizmos<'w, 's, T>

§

type Output<'a> = () where Gizmos<'w, 's, T>: 'a

source§

impl<'w, 's, T> GizmoPrimitive3d<Line3d> for Gizmos<'w, 's, T>

§

type Output<'a> = () where Gizmos<'w, 's, T>: 'a

source§

impl<'w, 's, T> GizmoPrimitive3d<Plane3d> for Gizmos<'w, 's, T>

§

type Output<'a> = Plane3dBuilder<'a, 'w, 's, T> where Gizmos<'w, 's, T>: 'a

source§

impl<'w, 's, T> GizmoPrimitive3d<Segment3d> for Gizmos<'w, 's, T>

§

type Output<'a> = () where Gizmos<'w, 's, T>: 'a

source§

impl<'w, 's, T> GizmoPrimitive3d<Sphere> for Gizmos<'w, 's, T>

§

type Output<'a> = SphereBuilder<'a, 'w, 's, T> where Gizmos<'w, 's, T>: 'a

source§

impl<'w, 's, T> GizmoPrimitive3d<Torus> for Gizmos<'w, 's, T>

§

type Output<'a> = Torus3dBuilder<'a, 'w, 's, T> where Gizmos<'w, 's, T>: 'a

source§

impl<'w, 's, const N: usize, T> GizmoPrimitive3d<Polyline3d<N>> for Gizmos<'w, 's, T>

§

type Output<'a> = () where Gizmos<'w, 's, T>: 'a