pub trait GizmoPrimitive3d<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: GizmoConfigGroup> GizmoPrimitive3d<BoxedPolyline3d> for Gizmos<'w, 's, T>

§

type Output<'a> = () where Self: 'a

source§

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

§

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

source§

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

§

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

source§

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

§

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

source§

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

§

type Output<'a> = () where Self: 'a

source§

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

§

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

source§

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

§

type Output<'a> = () where Self: 'a

source§

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

§

type Output<'a> = () where Self: 'a

source§

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

§

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

source§

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

§

type Output<'a> = () where Self: 'a

source§

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

§

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

source§

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

§

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

source§

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

§

type Output<'a> = () where Self: 'a