pub struct LineSet {
pub positions: Vec<[f64; 3]>,
pub topology: Topology,
pub colors: Option<Vec<[u8; 4]>>,
pub color: [f32; 4],
pub blend: Blend,
pub depth_test: bool,
}Expand description
A set of 1-pixel lines (like three.js LineBasicMaterial / LineSegments).
Fields§
§positions: Vec<[f64; 3]>§topology: Topology§colors: Option<Vec<[u8; 4]>>Per-vertex RGBA8; overrides color when present (used for fading trails).
color: [f32; 4]§blend: Blend§depth_test: boolfalse draws on top of everything (no depth test).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LineSet
impl RefUnwindSafe for LineSet
impl Send for LineSet
impl Sync for LineSet
impl Unpin for LineSet
impl UnsafeUnpin for LineSet
impl UnwindSafe for LineSet
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