20 releases (5 breaking)

0.5.0 Apr 28, 2023
0.4.0 Jan 27, 2023
0.3.0 Oct 22, 2022
0.2.0 Jul 31, 2022
0.0.3 Nov 3, 2020

#806 in Graphics APIs


Used in 2 crates (via kludgine-core)

MIT license

22KB
285 lines

easygpu-lyon

crate version

This crate provides a vector shape rendering pipeline for easygpu 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

Dependencies

~11–42MB
~674K SLoC