rgx-lyon

Crates.iorgx-lyon
lib.rsrgx-lyon
version0.1.2
sourcesrc
created_at2020-09-08 05:20:05.819197
updated_at2020-09-23 03:34:53.334055
descriptionA 2d graphics pipeline for rgx utilizing lyon
homepage
repositoryhttps://github.com/khonsulabs/rgx-lyon
max_upload_size
id286020
size58,113
Jonathan Johnson (ecton)

documentation

README

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

Commit count: 7

cargo fmt