rgx-lyon 0.1.2

A 2d graphics pipeline for rgx utilizing lyon
Documentation

rgx-lyon

crate version

This crate provides extremely feature-rich vector shape rendering to rgx via lyon.

A basic example

let mut builder = ShapeBuilder::default();
lyon::tessellation::basic_shapes::fill_circle(
    Point::new(50., 50.),
    25.,
    &FillOptions::default(),
    &mut builder,
)
.expect("Error tesselating circle");
let shape = builder.prepare(&renderer);

// { ... }

pass.set_pipeline(&self.pipeline);
self.shape.draw(pass);

For a more in-depth look, check out the examples/ directory. You can run individual examples using cargo run --example <name>, e.g., cargo run --example circle