easygpu-lyon

Crates.ioeasygpu-lyon
lib.rseasygpu-lyon
version0.5.0
sourcesrc
created_at2020-10-09 16:00:35.473851
updated_at2023-04-28 14:57:12.269659
descriptionA 2d graphics pipeline for easygpu utilizing lyon
homepage
repositoryhttps://github.com/khonsulabs/easygpu-lyon
max_upload_size
id297736
size78,386
Publishers (github:khonsulabs:publishers)

documentation

README

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

Commit count: 15

cargo fmt