Struct zaplib_components::DrawLines3dInstance
source · [−]#[repr(C)]pub struct DrawLines3dInstance {
pub position_before: Vec3,
pub position_start: Vec3,
pub position_end: Vec3,
pub position_after: Vec3,
pub color_start: Vec4,
pub color_end: Vec4,
pub scale: f32,
}
Fields
position_before: Vec3
Starting point for the previous line segment. We use this to compute the corner between the previous line segment and the current one.
position_start: Vec3
Starting point for the current line segment. This is also the end point
for the previous segment. If the current segment is the very first one
in the strip, DrawLines3dInstance::position_before
and
DrawLines3dInstance::position_start
will be the same point.
position_end: Vec3
End point for the current line segment. This is also the start point
for the next segment in the strip. If the current segment is the last one
in the strip, both DrawLines3dInstance::position_end
and DrawLines3dInstance::position_after
will have the same value.
position_after: Vec3
End point for the next segment in the strip. This point is used to compute the corner between the current segment and the next one.
color_start: Vec4
Color for the start point in the current line segment.
color_end: Vec4
Color for the end point in the current line segment. If it’s different from the start color, we get a gradient effect.
scale: f32
Thichness of the line strip
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DrawLines3dInstance
impl Send for DrawLines3dInstance
impl Sync for DrawLines3dInstance
impl Unpin for DrawLines3dInstance
impl UnwindSafe for DrawLines3dInstance
Blanket Implementations
Mutably borrows from an owned value. Read more