Struct glowygraph::render2::QBezier
[−]
[src]
pub struct QBezier { pub position0: [f32; 2], pub position1: [f32; 2], pub position2: [f32; 2], pub inner_color0: [f32; 4], pub inner_color1: [f32; 4], pub falloff_color0: [f32; 4], pub falloff_color1: [f32; 4], pub falloff0: f32, pub falloff1: f32, pub falloff_radius0: f32, pub falloff_radius1: f32, pub inner_radius0: f32, pub inner_radius1: f32, }
QBezier is used to pass a quadratic bezier curve into the shader with interpolating values.
Fields
position0: [f32; 2]
position1: [f32; 2]
position2: [f32; 2]
inner_color0: [f32; 4]
inner_color1: [f32; 4]
falloff_color0: [f32; 4]
falloff_color1: [f32; 4]
falloff0: f32
Decreasing falloff makes the nodes brightness more centered at the middle and increasing it makes it consistent.
falloff1: f32
falloff_radius0: f32
falloff_radius1: f32
inner_radius0: f32
inner_radius1: f32
Trait Implementations
impl Copy for QBezier
[src]
impl Clone for QBezier
[src]
fn clone(&self) -> QBezier
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for QBezier
[src]
impl Vertex for QBezier
fn build_bindings() -> VertexFormat
Builds the VertexFormat
representing the layout of this element.
fn is_supported<C>(caps: &C) -> bool where
C: CapabilitiesSource + ?Sized,
[src]
C: CapabilitiesSource + ?Sized,
Returns true if the backend supports this vertex format.