pub enum OverlayPrimitive {
Polyline {
points: Vec<DVec3>,
color: Color,
width: f32,
},
Circle {
centre: DVec3,
radius: f64,
color: Color,
width: f32,
},
Marker {
anchor: DVec3,
kind: MarkerKind,
color: Color,
size: f32,
},
Label {
anchor: DVec3,
text: String,
style: OverlayTextStyle,
placement: LabelAnchor,
leader: bool,
},
Line {
a: [f32; 2],
b: [f32; 2],
color: Color,
width: f32,
},
}Expand description
A scene-space overlay primitive.
Variants§
Polyline
Connected line segments through scene points.
Circle
Circle of constant world radius around a scene-space centre.
Marker
Filled marker at a scene anchor.
Label
Text label at a scene anchor, optionally with a leader line back to the anchor.
Line
Screen-space line, for reticles and crosshairs.
Trait Implementations§
Source§impl Clone for OverlayPrimitive
impl Clone for OverlayPrimitive
Source§impl Debug for OverlayPrimitive
impl Debug for OverlayPrimitive
Source§impl PartialEq for OverlayPrimitive
impl PartialEq for OverlayPrimitive
impl StructuralPartialEq for OverlayPrimitive
Auto Trait Implementations§
impl Forget for OverlayPrimitive
impl Freeze for OverlayPrimitive
impl Move for OverlayPrimitive
impl RefUnwindSafe for OverlayPrimitive
impl Send for OverlayPrimitive
impl Sync for OverlayPrimitive
impl Unpin for OverlayPrimitive
impl UnsafeUnpin for OverlayPrimitive
impl UnwindSafe for OverlayPrimitive
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more