Struct glowygraph::render2::Node
[−]
[src]
pub struct Node { pub position: [f32; 2], pub inner_color: [f32; 4], pub falloff: f32, pub falloff_color: [f32; 4], pub falloff_radius: f32, pub inner_radius: f32, }
Node is used to pass nodes into the renderer.
Fields
position: [f32; 2]
inner_color: [f32; 4]
falloff: f32
Decreasing falloff makes the nodes brightness more centered at the middle and increasing it makes it consistent.
falloff_color: [f32; 4]
falloff_radius: f32
inner_radius: f32
Trait Implementations
impl Copy for Node
[src]
impl Clone for Node
[src]
fn clone(&self) -> Node
[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 Node
[src]
impl From<Point2<f32>> for Node
[src]
impl Vertex for Node
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.