Struct rin_gl::VaoPath [−][src]
pub struct VaoPath { /* fields omitted */ }
Keeps a RAM version of a Path2D and a tesselation in the gpu and updates the gpu tesselation if the RAM version changed
See Path2D for more info
Implementations
impl VaoPath
[src]
impl VaoPath
[src]pub fn set_line_width(&mut self, w: f32)
[src]
pub fn line_width(&self) -> f32
[src]
pub fn set_line_cap(&mut self, cap: LineCap)
[src]
pub fn line_cap(&self) -> LineCap
[src]
pub fn set_line_color<C: ToRgba>(&mut self, c: &C)
[src]
pub fn line_color(&self) -> Rgba<f32>
[src]
pub fn set_fill_color<C: ToRgba>(&mut self, c: &C)
[src]
pub fn fill_color(&self) -> Rgba<f32>
[src]
pub fn set_changed(&mut self)
[src]
pub fn move_to(&mut self, to: Pnt2)
[src]
pub fn line_to(&mut self, to: Pnt2)
[src]
pub fn bezier_to(&mut self, cp1: Pnt2, cp2: Pnt2, to: Pnt2)
[src]
pub fn quad_bezier_to(&mut self, cp1: Pnt2, to: Pnt2)
[src]
pub fn catmull_rom_to(&mut self, to: Pnt2)
[src]
pub fn arc(
&mut self,
center: Pnt2,
w: f32,
h: f32,
init_angle: Deg<f32>,
angle: Deg<f32>
)
[src]
&mut self,
center: Pnt2,
w: f32,
h: f32,
init_angle: Deg<f32>,
angle: Deg<f32>
)
pub fn close(&mut self)
[src]
pub fn append(&mut self, path: Path2D)
[src]
pub fn set(&mut self, path: Path2D)
[src]
pub fn clear(&mut self)
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn to_lines<F>(&self, resolution: u32, f: F) where
F: FnMut(Pnt2, Pnt2, bool),
[src]
F: FnMut(Pnt2, Pnt2, bool),
pub fn to_line_strips<F>(&self, resolution: u32, f: F) where
F: FnMut(Pnt2, bool),
[src]
F: FnMut(Pnt2, bool),
pub fn path<'a>(&'a self) -> &'a Path2D
[src]
pub fn path_mut<'a>(&'a mut self) -> &'a mut Path2D
[src]
pub fn fill(&self, resolution: u32) -> VaoPathFill<'_>
[src]
pub fn contour(&self, resolution: u32) -> VaoPathContour<'_>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for VaoPath
impl !Send for VaoPath
impl !Sync for VaoPath
impl Unpin for VaoPath
impl !UnwindSafe for VaoPath
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]