[][src]Trait bevy_lyon::LyonShapeBuilder

pub trait LyonShapeBuilder {
    fn build(self, builder: &mut BevyBuffersBuilder<'_>);
}

Represents something capable of being built into a shape with the LyonMeshBuilder.

Required methods

fn build(self, builder: &mut BevyBuffersBuilder<'_>)

Loading content...

Implementors

impl<'_> LyonShapeBuilder for FillCircle<'_>[src]

impl<'_> LyonShapeBuilder for FillQuad<'_>[src]

impl<'_> LyonShapeBuilder for FillRect<'_>[src]

impl<'_> LyonShapeBuilder for FillRoundedRect<'_>[src]

impl<'_> LyonShapeBuilder for StrokeCircle<'_>[src]

impl<'_> LyonShapeBuilder for StrokeEllipse<'_>[src]

impl<'_> LyonShapeBuilder for StrokeQuad<'_>[src]

impl<'_> LyonShapeBuilder for StrokeRect<'_>[src]

impl<'_> LyonShapeBuilder for StrokeRoundedRect<'_>[src]

impl<'_> LyonShapeBuilder for StrokeTriangle<'_>[src]

impl<F> LyonShapeBuilder for F where
    F: FnOnce(&mut BevyBuffersBuilder<'_>), 
[src]

Allow all closures and functions that take in a mutable reference to a BevyBuffersBuilder to be considered a shape builder. Permits ergonomically using a closure (or function) for complicated custom meshes.

impl<I, '_> LyonShapeBuilder for FillPolyline<'_, I> where
    I: IntoIterator<Item = Point> + Default
[src]

impl<I, '_> LyonShapeBuilder for StrokePolyline<'_, I> where
    I: IntoIterator<Item = Point> + Default
[src]

impl<I, G, '_> LyonShapeBuilder for FillConvexPolyline<'_, I, G> where
    I: IntoIterator<Item = Point, IntoIter = G> + Default,
    G: Iterator<Item = Point> + Clone
[src]

Loading content...